mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 14:55:51 +02:00
rails-server: add page (#15590)
* 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>
This commit is contained in:
parent
f4c5a35dea
commit
7fd944e3a8
1 changed files with 24 additions and 0 deletions
24
pages/common/rails-server.md
Normal file
24
pages/common/rails-server.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue