简体   繁体   中英

How to start a Rails server forever on Ubuntu

I have uploaded my Rails app on my Ubuntu server, where I want to keep my Rails server running so that any one can access it at any time.

I tried the command below to run my app:

rails server --binding=oditek.in -p 8888

Please help me to make this possible.

You can try following option to run the server in background.

rails s -d ## With default Port.
rails s -p 8888 -d ## With Custom port.

Or

nohup rails s &

Or

You can also configure your project with Nginx + Passenger

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM