1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/rails-server.md

25 lines
558 B
Markdown
Raw Normal View History

# rails server
> Serve the Rails app in the current directory using the Puma web server, which comes bundled with Rails.
> More information: <https://guides.rubyonrails.org/command_line.html#bin-rails-server>.
- Run the web server:
`rails server`
- Run the web server on a specified port:
`rails server --port {{port_number}}`
- Run the web server on a specified IP address:
`rails server --binding {{ip_address}}`
- Run the web server on a specified environment:
`rails server --environment {{environment}}`
- Display help:
`rails server --help`