Page 1 of 1

How to adapt javascript code when migrating from appery server to an external server

Posted: Thu Jun 19, 2014 3:35 pm
by Jesus Lozano

Hello,
I would welcome guidance in how to adapt javascript code when migrating it from the appery server to an external server. The code works correctly when in the appery server. When I copy it to an external server and point the application to it through the proxy, it does not work correctly. I have tried just copying/pasting just the javascript code without adding anything else, tried too enclosing it within an html page, and in both cases it is not working correclty.
What adaptations are needed? Any guidance will be very welcome,

Jesus Lozano


How to adapt javascript code when migrating from appery server to an external server

Posted: Thu Jun 19, 2014 8:32 pm
by Kateryna Grynko

Hi Jesus,

You would need to export your app (http://devcenter.appery.io/documentat...) and enable proxy for services. Are there any problems or errors?


How to adapt javascript code when migrating from appery server to an external server

Posted: Mon Jun 23, 2014 10:45 pm
by Jesus Lozano

Hello Katya,

I will use the REST API, thanks for your answer!

Jesus Lozano


How to adapt javascript code when migrating from appery server to an external server

Posted: Mon May 11, 2015 12:09 am
by Fernando Galindez

Hi,

I dont understand how i can do to export the server code. My server code doesn't connect with my app but have relation with the database. Can anyone help me with my question please.

FG


How to adapt javascript code when migrating from appery server to an external server

Posted: Mon May 11, 2015 6:18 am
by Illya Stepanov

Hi Fernando -

There is no special connection between your server code and our DB, all you need is define your DB_id and correct URL, for example you can check the structure and parameters in our documentation here: https://devcenter.appery.io/documenta...


How to adapt javascript code when migrating from appery server to an external server

Posted: Mon May 11, 2015 1:38 pm
by Fernando Galindez

Hi IIIya,

Sorry but i am a beginer. Un my code i never write the url, where i need to put it. If i run my code un my own server i dont understand where i need to write the url.

Sorry for the basic questión.

Regards,

FG


How to adapt javascript code when migrating from appery server to an external server

Posted: Tue May 12, 2015 10:45 am
by Serhii Kulibaba

Hello Fernando,

Please use URL of your appery.io DB on your server like it is showed here: https://devcenter.appery.io/documenta...