1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00
tldr/pages/common/rails-server.md
Nelson Figueroa 7fd944e3a8
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>
2025-01-25 21:34:13 -08:00

558 B

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