Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document server options

  • Loading branch information...
commit f73d1a6236bb7f93c7936d99234db61556d93d3f 1 parent d010686
@vijaydev vijaydev authored fxn committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/guides/source/command_line.textile
View
6 railties/guides/source/command_line.textile
@@ -75,6 +75,12 @@ With just three commands we whipped up a Rails server listening on port 3000. Go
You can also use the alias "s" to start the server: <tt>rails s</tt>.
+The server can be run on a different port using the +-p+ option. The default development environment can be changed using +-e+.
+
+<shell>
+$ rails server -e production
+</shell>
+
h4. +rails generate+
The +rails generate+ command uses templates to create a whole lot of things. You can always find out what's available by running +rails generate+ by itself. Let's do that:
Please sign in to comment.
Something went wrong with that request. Please try again.