Page 1 of 1

Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 7:35 am
by tim foran

i used appery.io to create an app that mainly access a service hosted on heroku.

i'm trying to get this app out into the world for testing amongst friends and family but am running into the normal cross-domain service issues.

if i push the appery.io app to my heroku account, will it mess anything up on the backend/service side? do i push to the same app name as the service my app accesses, or do I create a new app name on heroku (different from the existing service)?

thanks for your help and please let me know if i can clarify anything.


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 2:06 pm
by Kateryna Grynko

Hi Tim,

All the Database/Servercode connection will remain: http://docs.appery.io/documentation/p...


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 3:58 pm
by tim foran

Hi Katya,

To clarify - I publish to the SAME/existing app, even if the app on heroku is django/python and our appery.io app connects to it via REST API?

Or do I publish to a new app on heroku?


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 5:18 pm
by Maryna Brodina

Hello!

If you publish app to the same app on heroku, there won't be cross domain issue. It's better to download html5 app in Appery.io and publish t manually.


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 5:57 pm
by tim foran

Will I run into the cross-domain issue if I push to a NEW app on heroku?

What I want to do is a) avoid the cross-domain issue, and b) not screw up anything on the django/python that we already have in heroku


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 6:54 pm
by Maryna Brodina

If domains are the same, there won't be cross domain issue. By the way, if it's your site you can set service response header Access-Control-Allow-Origin to avoid this problem.


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 8:29 pm
by tim foran

it is our site - how do you go about doing that?


Publishing app to heroku where the service used by the app is already hosted

Posted: Thu Apr 03, 2014 8:53 pm
by Maryna Brodina