Is it possible to trigger a redeployment from Heroku? - ruby-on-rails

I'm trying to get to a point where I can make and deploy emergency changes to my Heroku apps from mobile devices. Using CodeHub (ios) I'm able to make changes to the GitHib repo, and using Nezumi (ios) I'm able to access the logs, restart the application and even gain console access to my app. The one thing that I can't figure out how to do at the moment is how to push the updated GitHub repo to Heroku and rebuild/redeploy the slug.
Is there any way retrigger this via the heroku console or any other mobile friendly interface?
Thanks.

There are plenty of deployment services that will do this, but if you're looking for one that works well on mobile, http://www.wercker.com is great.

Related

How to fetch information from one app to another app in iOS

I've been searching for a way that if there's any way that an app can push / pull a message to / from another app, assuming that both apps have been installed. I have a feeling that probably that it is not possible, but would like to confirm with SO.
Basically, I'm going to develop two apps, app1 and app2. Let's assume that a user always downloads both of the apps (or, I've found previous discussions over SO that it is possible for an app to figure out if another target app is installed assume it makes Uri registration.) App1 would generate some information and have to pass to app2. One way to do it is that I can have an external server as a relay, and both apps can talk over network. However, is it possible to pass information locally from an app to another app, just like Service in Android? It would be appreciated if you can give me a keyword or a link. I read it further. Thank you.
Your solution is the App Groups Entitlement.
For files see: https://developer.apple.com/documentation/foundation/filemanager/1412643-containerurl
For NSUserDefaults see: https://developer.apple.com/documentation/foundation/userdefaults#1664611

AWS Lights DNS Zone Setup

I currently have an application server on AWS Lightsail that serving smartphone app. I had to make backend changes mostly security tweaks to secure API calls between the server and the app. The changes are still in my test server and the moment i apply them to production current users wont be able to communicate with the server. They will be logged out and required to update the app before login again. My problem is I cant really find a way to avoid service disruption and there will be downtime between the time I deploy the changes until my app update gets approved by Apple as Apple need a running server to test the app before they approve it. during that time my users who are using the old version wont be able to communicate with the updated server and that time would be 1-2 days which is something I cant afford.
My questions:
First Question
Is there anyway I can have DNS Zone setup and have both the old and new servers running and direct traffic coming from the old and updated app to the respective server? I have an initial thought that this can be done by using Route 53 however, i am not sure how to get this working.
Second Question
Do I need add a config file to the updated app to check the health of the server and communicate with accordingly?
Thank you in advance!

How do I access my azure database data from my xamarin mobile app?

I'm new to mobile app development, I've been tasked with making an app and so I'm now starting my voyage of discovery. I am coding the app in Visual Studio 2015 with Xamarin using a Mac Book Pro as the client for testing, all our data is stored in a database in our Azure portal. The app I am making is for iOS.
I've read the documentation but I'm getting stuck in certain areas and I think it's down to not understanding what is needed based on conflicting documentation or my own failure to grasp the concepts outlined.
All I am looking to do at the moment is have my app grab data from my azure database and display it in a list/table.
The steps I have taken so far are:
I have created a very basic app within visual studio with a
storyboard and a navigation item that points to a table view(where I'd like my data to be shown).
I created a Mobile App in my Azure account(as per documentation).
I have set the above mentioned mobile app to use my current existing database and supplied it with the username and password which all seems to be ok.
I am now at the point I need to get my app to talk to this mobile app and grab some data from my database. The todo example is ok but it's not quite enough to get me up and running or more specifically it's not in quite the right context for my setup and I think it's causing confusion.
There seems to be a few ways to set the project up for data access but I'm not sure what would be best.
Can anyone assist?
You are nearly there.
Instead of connecting directly to your database, you connect to your mobile apps API which then connects to your database, handles your request, and sends the data back to your app. You need to code this backend first so it is able to handle your requests. Take a look at this tutorial, it is really good :
https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-backend-how-to-use-server-sdk
You will access your Azure Mobile App with the Azure Mobile Client SDK nuget package.
A complete guide to do this can be found here: https://developer.xamarin.com/guides/xamarin-forms/web-services/consuming/azure/
There is also this podcast: https://blog.xamarin.com/podcast-building-connected-apps-with-azure-mobile-apps/

UIWebView w/ Rails push notifications

I have got a web app written in Rails running on Heroku, using Devise as the authentication system. It is fully responsive and works well when pinned to Homescreen.
However I would like to put it in as a native iOS app, using UIWebView. In order to get more out of the experience, I would like to add push notifications.
What is the best way to call a Push notification, without breaking the webapp version?
Thanks for your help!

Is there any sandbox environment for Twitter app development?

I am developing an iOS application and I am integrating the ShareKit 2.0 project. I want to share content via Facebook and Twitter. Both of them require to create an application on their platform. Everything at this point is ok.
The problem is that as the application in under development, we don't want it to be visible by anybody that is not in this project, so we can't publish content on our facebook/twitter accounts visibly for external people.
Facebook supports a sandbox environment where the app admin can allow just certain users to use the application, so only those users will be able to access and view contents related with that app. And I am looking for something similar on Twitter, but I can't find it.
This is a very hard problem, when you don't find out if this is possible or not, because you never know when you should stop looking for the answer and decide it's not possible. So here I am, asking to SO gurus: is there any sandbox environment for Twitter so we can develop and test our applications?
Thank you very much!
Ok, as I received no answer for this question, I will finally deduce that there does not exist such a sandbox environment for Twitter.
However, I "solved" my requirements by setting my testing account in private mode (I didn't know about this because I rarely use Twitter). Right now this will do the trick, but of course it's much worse than the Facebook sandbox environment.
Apparently not:
https://dev.twitter.com/discussions/1238
#episod Taylor Singletary
There are unfortunately no sandboxes for this kind of activity. It's best for automated testing to not actually hit the API but instead to mock it out.
I recommend you just create a dummy account for testing. I don't know any other way.
Have you tried http://twitsandbox.com
twitSandbox is a web application to support creating applications using the Twitter APIs. It actually processes the methods of almost all and you can confirm what kind of response receives.

Resources