commands.sh

rails server

all

Serve the Rails app in the current directory using the Puma web server, which comes bundled with Rails.

More info →

Options (4)

-p, --portboolean

Run the web server on a specified port

Example: rails server {{[-p|--port]}} {{port_number}}
-b, --bindingboolean

Run the web server on a specified IP address

Example: rails server {{[-b|--binding]}} {{ip_address}}
-e, --environmentboolean

Run the web server on a specified environment

Example: rails server {{[-e|--environment]}} {{environment}}
-h, --helpboolean

Display help

Example: rails server {{[-h|--help]}}

Examples (5)

Run the web server

Run the web server on a specified port

rails server [-p|--port] port_number

Run the web server on a specified IP address

rails server [-b|--binding] ip_address

Run the web server on a specified environment

rails server [-e|--environment] environment

Display help

rails server [-h|--help]
made by @shridhargupta | data from tldr-pages