...
Expand | ||
---|---|---|
| ||
|
...
Start the rails server:
Code Block | ||
---|---|---|
| ||
$ rails server OR $ rails s |
Stop the rails server:
Code Block | ||
---|---|---|
| ||
# In terminal where rails server was started... <CTRL> C |
Run for a specific environment
Code Block | ||
---|---|---|
| ||
$ 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 | ||
---|---|---|
| ||
$ 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 |
...