You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Current »
← ALL HOW TOs
Start the rails server:
$ rails server
OR
$ rails s
Stop the rails server:
# In terminal where rails server was started...
<CTRL> C
Run for a specific environment
$ rails s -e production
$ rails s -e test
$ rails s -e profile
$ rails s # default is to use development environment
Start on a specific port
$ rails s -p 3001 # starts on port 3001
$ bundle exec rails s -p 3002 # starts on port 3002
$ rails s # starts on default port 3000