mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
alias added for rails runner guide
This commit is contained in:
parent
9c7a55cf11
commit
444e01e4af
1 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,8 @@ h4. +rails runner+
|
|||
$ rails runner "Model.long_running_method"
|
||||
</shell>
|
||||
|
||||
You can also use the alias "r" to run Ruby code in the context of Rails: <tt>rails r</tt>.
|
||||
|
||||
You can specify the environment in which the +runner+ command should operate using the +-e+ switch.
|
||||
|
||||
<shell>
|
||||
|
|
Loading…
Reference in a new issue