Go from the local xampp server to the online server

I wrote an Android application and for development, I used the local XAMPP server. On the server side, I use mysql db and several php files containing requests. On the android side, I use HttpURLConnection, as shown below.

url = new URL(AppHelper.SERVER_URL + phpFile);
connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setRequestMethod("POST");

request = new OutputStreamWriter(connection.getOutputStream());
request.write(parameters);
request.flush();
request.close();
String line = "";
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader reader = new BufferedReader(isr);
StringBuilder sb = new StringBuilder();

Now I am at a stage where I would like some friends to try the application, so I want to configure a hosted web server. Now I hope to get suggestions to be used so that I can save and recycle most of my code and files. Please note that I am very unfamiliar with this, therefore user friendliness is an important criterion. What are the preferred ways to migrate from a local server to a server solution?

+4
7

heroku . , - URL- - .

heroku.

openshift.

, Heroku .

+1

-, . php . MySQL .

Filezilla PHP .

+2

PHP, android ( URL- Android PHP- ), @WinHtalkAung heroku , Fortrabbit, pagodabox, 000webhost

, , ,

+1

, , , PHP, , CLI , , .

, , , VPS Heroku.

VPS , Git

Heart Internet UK , , , Heroku

+1

git, github bitbucket (1-5 ) . , , .

rackspace, digital ocean aws , .

+1

  • , php mysql ( ), - rackspace
  • FTP.

!

+1

, FEW? ngrok localhost: #### , .

SO, if your friends find some errors that can be fixed with a few simple lines of code, you can do it on your local machine and you are ready to go. NO GIT PUSHES, NO Filezilla confuses nothing. This is a viable test case for you if you plan to stick with just a few friends and test the acceptance test of the NOT user for actual deployment.

+1
source

All Articles