aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-12 02:16:08 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-12 02:16:08 +0530
commit07bf60864474ba2217636ca1d2216fe7b89a6628 (patch)
tree5d4e11a7dffd4a2997682293b1560de2b7f15fa5
parentd91ee6cba43b474df47751c130da781f9febeb90 (diff)
downloadrails-07bf60864474ba2217636ca1d2216fe7b89a6628.tar.gz
rails-07bf60864474ba2217636ca1d2216fe7b89a6628.tar.bz2
rails-07bf60864474ba2217636ca1d2216fe7b89a6628.zip
document server options
-rw-r--r--railties/guides/source/command_line.textile6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index 013476a4dd..57c71eee09 100644
--- a/railties/guides/source/command_line.textile
+++ b/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: