aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2013-06-15 05:55:50 -0700
committerVishnu Atrai <me@vishnuatrai.com>2013-06-15 05:55:50 -0700
commitb014f2829963c2224d95bf15079114654e7a5fb2 (patch)
tree95f40c129b22610292ecf4f2c1c220e55ba6d18c /guides
parentfc8c4e60d8f119d685be75b19a65ae425b83ebeb (diff)
parent8f39defd29934d63c8b4359a6b8ac747da8e0d18 (diff)
downloadrails-b014f2829963c2224d95bf15079114654e7a5fb2.tar.gz
rails-b014f2829963c2224d95bf15079114654e7a5fb2.tar.bz2
rails-b014f2829963c2224d95bf15079114654e7a5fb2.zip
Merge pull request #146 from vatrai/command_line_rake_guid
more guidelines for rake tasks
Diffstat (limited to 'guides')
-rw-r--r--guides/source/command_line.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index e0b44bbf93..0b36f0859f 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -27,6 +27,8 @@ There are a few commands that are absolutely critical to your everyday usage of
* `rails dbconsole`
* `rails new app_name`
+All commands can run with ```-h or --help``` to list more information.
+
Let's create a simple Rails application to step through each of these commands in context.
### `rails new`
@@ -348,6 +350,9 @@ Rake is Ruby Make, a standalone Ruby utility that replaces the Unix utility 'mak
You can get a list of Rake tasks available to you, which will often depend on your current directory, by typing `rake --tasks`. Each task has a description, and should help you find the thing you need.
+To get the full backtrace for running rake task you can pass the option
+```--trace``` to command line, for example ```rake db:create --trace```.
+
```bash
$ rake --tasks
rake about # List versions of all Rails frameworks and the environment
@@ -361,6 +366,7 @@ rake middleware # Prints out your Rack middleware stack
rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)
rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids
```
+INFO: You can also use ```rake -T``` to get the list of tasks.
### `about`