mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 23:42:09 +02:00

* rails-server: add page * adding newline * Update pages/common/rails-server.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * updating description * Update pages/common/rails-server.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
24 lines
558 B
Markdown
24 lines
558 B
Markdown
# 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`
|