B4J Question Howto transport jRDC2 Server solution to hosted server?

fredo

Well-Known Member
Licensed User
Longtime User
I'm referring to:

@aeric
I've taken a look at your server/client templates, and I find it very accessible and I managed to get it up and running on my local machine.

Now, I'd like to try it online. I have an Ubuntu server set up, but I still lack some experience with it.
I've established the connection using an SSH key without a password.

My questions:
1. What steps do I need to take to transfer the jRDC2 server to the online site?
2. Do I need to install an ftp server on the hosted server for the transport?
3. What is the target folder for the jRDC2 server?
 

aeric

Expert
Licensed User
Longtime User
Please check this tutorial for Linux VPS.

1. What steps do I need to take to transfer the jRDC2 server to the online site?
You need to compile the app into .jar file and upload together with any www folder inside your Objects folder (if you have some asset files like CSS or images).

2. Do I need to install an ftp server on the hosted server for the transport?
Usually FTP already available with the OS image.
You need an FTP Client software. I am using WinSCP.

3. What is the target folder for the jRDC2 server?
You may create a new folder inside the home directory if you are on Linux VPS.
With Putty, locate the directory and check the jar file you uploaded with the FTP client. Then execute the nohup command as per tutorial to run the app.

cd = change directory
ls = list files

Edit: If Java is not installed on the server then you need to upload the Java JDK for the platform.
 
Upvote 1
Top