Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleTable of Contents

Table of Contents


...

Start the rails server:

Code Block
languagenone
$ rails server

OR

$ rails s

Stop the rails server:

Code Block
languagenone
# In terminal where rails server was started...
<CTRL> C


Run for a specific environment

Code Block
languagenone
$ 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

Code Block
languagenone
$ 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

...