Skip to content

Instantly share code, notes, and snippets.

@misostack
Created October 2, 2017 10:30
Show Gist options
  • Save misostack/6f3214af9b29c9cf8cc4d8330a065abd to your computer and use it in GitHub Desktop.
Save misostack/6f3214af9b29c9cf8cc4d8330a065abd to your computer and use it in GitHub Desktop.
rails 5 - command line - rails server -h
Usage:
rails server [puma, thin etc] [options]
Options:
-p, [--port=port] # Runs Rails on the specified port - defaults to 3000.
-b, [--binding=IP] # Binds Rails to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'.
-c, [--config=file] # Uses a custom rackup configuration.
# Default: config.ru
-d, [--daemon], [--no-daemon] # Runs server as a Daemon.
-e, [--environment=name] # Specifies the environment to run this server under (development/test/production).
-P, [--pid=PID] # Specifies the PID file.
# Default: tmp/pids/server.pid
-C, [--dev-caching], [--no-dev-caching] # Specifies whether to perform caching in development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment