Jesus Lozano
Posts: 0
Joined: Thu Jun 19, 2014 3:35 pm

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

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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?

Jesus Lozano
Posts: 0
Joined: Thu Jun 19, 2014 3:35 pm

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

Hello Katya,

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

Jesus Lozano

Fernando Galindez
Posts: 0
Joined: Thu Mar 19, 2015 5:46 pm

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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...

Fernando Galindez
Posts: 0
Joined: Thu Mar 19, 2015 5:46 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Fernando,

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

Return to “Issues”