Answer the question
In order to leave comments, you need to log in
How to deploy react application on VPS server?
Hello! There is a build of a small application on React and a VPS server with pre-installed nodejs from reg.ru. I uploaded the build to the server and deployed (I tried to deploy in many ways, from "serve -s" to writing my own small server on node.js). Everything works, but exactly as long as I do not break the connection to the server, although I leave the application running.
Never worked with VPS before. What did you make a mistake and what should be done in order to have access to the application all the time, without starting it manually every time?
Answer the question
In order to leave comments, you need to log in
After connecting to the VPS via SSH, you need to create a session using the GNU Screen utility and deploy the application in this session.
screen –S myscreensession01
More details can be found here: Screen program. Running applications in the background .
If the utility is not installed on the system on the server, the installation can be done using the apt command (for Ubuntu, Linux Mint, Deepin and other systems of the Debian family):
sudo apt install screen
More details can be found here: The Screen Linux command .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question