Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | backport runner fixes to 3-2-stable | kennyj | 2012-12-16 | 1 | -0/+1 |
| | | | | | | | Add a runner hook to Rails::Application and Rails::Engine that requires ActiveRecord::Base to avoid circular constant loading when using observers. This commit backports cc7dd66, c0ba0f0 and 8d01c61. | ||||
* | make 'rails runner' show usage when run without any options | Vijay Dev | 2011-06-10 | 1 | -0/+4 |
| | |||||
* | Use all in place of find(:all) | Vijay Dev | 2011-05-10 | 1 | -1/+1 |
| | |||||
* | Always flush logger at exit | Jason Rudolph | 2011-05-06 | 1 | -14/+8 |
| | | | | | | | | | | | | | | Prior to this change, running code via script/runner would demonstrate different logging behavior than running the same code via a rake task. In production mode the script/runner approach would always flush the logger, but the rake-based approach would not automatically flush the logger. This discrepancy violates the principle of least surprise, and it could lead to the loss of important production logging data. This change removes special-case code in the "runner" command, and replaces it with a general solution to ensure that the logger gets flushed at exit. This solution works for "runner", "console", "server", rake tasks, and any other process that loads the Rails environment. | ||||
* | Send 'rails runner' help message to stdout instead of stderr. | rohit | 2010-09-19 | 1 | -1/+1 |
| | | | | | | [#5661 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Fix output of 'rails runner --help' [#4249 state:open] | rohit | 2010-09-18 | 1 | -1/+1 |
| | |||||
* | Config is deprecated on 1.8.8 and 1.9.3 use RbConfig | Santiago Pastorino | 2010-08-23 | 1 | -1/+1 |
| | |||||
* | Avoid calls to Rails::Application since this is not the official API. | José Valim | 2010-07-01 | 1 | -1/+1 |
| | | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally. | ||||
* | Rails Runner now sets $0 and $PROGRAM_NAME to name of file being run [#2244 ↵ | rohit | 2010-06-22 | 1 | -0/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | The rake task :environment now loads config/environment.rb instead of ↵ | José Valim | 2010-04-29 | 1 | -1/+2 |
| | | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks. | ||||
* | Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved] | Anil Wadghule | 2010-04-26 | 1 | -1/+2 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix regexp typo | Jeremy Kemper | 2010-04-13 | 1 | -1/+1 |
| | |||||
* | Make RUBY_PLATFORM windows regex consistent [#4345 state:resolved] | Anil Wadghule | 2010-04-12 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | rails runner loads environment after parsing command-line options | Jeremy Kemper | 2010-02-09 | 1 | -0/+2 |
| | |||||
* | Rename usage path to command to just the command name | David Heinemeier Hansson | 2010-02-02 | 1 | -1/+1 |
| | |||||
* | Get everyone running on Rails.env and fix the broken environment settings ↵ | David Heinemeier Hansson | 2010-01-11 | 1 | -1/+0 |
| | | | | for script/console and script/dbconsole | ||||
* | script/runner should require environment | Joshua Peek | 2009-10-16 | 1 | -2/+0 |
| | |||||
* | Use Rails.initialize! where we just want to run the initializers and aren't ↵ | Joshua Peek | 2009-10-16 | 1 | -1/+1 |
| | | | | concerned about the config | ||||
* | Have config/application.rb contain the application definition and require ↵ | Carl Lerche | 2009-10-15 | 1 | -1/+1 |
| | | | | that file instead of config/boot.rb or config/environment.rb in script/*. | ||||
* | Move railties/lib/* into railties/lib/* | Yehuda Katz + Carl Lerche | 2009-09-24 | 1 | -0/+54 |