If you have deployed a Rails project to a remote server and want to have it running the whole time, not just when you are accessing it via an ssh connection, here is how you can do that.
Go to the project directory where your Rails project is located at and execute the following:
rvmsudo rails server -p 80 -d &
This means that the Rails project will run on port 80. If you want to change the port and set it to another port, you can simply execute
rvmsudo rails server -p PORT_NUMBER -d &
That’s it. You can now exit the ssh connection and should be able to access the project without having the server shutting down.
This was a quick article, but something that may hopefully help someone who may be looking for something quick and straight to the point.