Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I run rails server daemon?

People also ask

How do I run a Rails server?

Go to your browser and open http://localhost:3000, you will see a basic Rails app running. You can also use the alias "s" to start the server: bin/rails s . The server can be run on a different port using the -p option. The default development environment can be changed using -e .


It should be:

rails server --daemon

# to kill the server
kill `cat tmp/pids/server.pid`

# to tail development logs for debugging
tail -f log/development.log

it's worth trying the following command

$ rails s -d