Skip to content
Florian edited this page Aug 24, 2017 · 1 revision

Server:


In order to start the server on IP: 91.219.68.208, the following things need to be performed. This also has to be done if the server is reseted or if an updated is uploaded to the server. First connect to the server and in the command line navigate to the server folder, which contains the express-server.js file. To run it once as long as the connection to the server is open, type:
sudo nodemon express-server.js
To run the server forever, the package "forever" is used (server is running even if connection to server is closed form commandline):
sudo forever start express-server.js
The last command stop the forever package in order to shut the server down.
sudo forever stop express-server.js

Clone this wiki locally