Ruby on Rails Discussions
override RAILS_ENV from rake task
rubyonrails-talk
bphogan
(Brian P. Hogan)
July 20, 2007, 7:52pm
1
You could do
rake RAILS_ENV=“test” taskname
or are you looking for something more programmable?
Related topics
Topic
Replies
Views
Activity
How to set environment when calling rake task inside another
rubyonrails-talk
0
112
December 27, 2007
get which enviornment is running from controller..
rubyonrails-talk
1
143
July 15, 2007
[Rails3] How to define RAILS_ENV for rake?
rubyonrails-talk
1
123
July 16, 2011
Rake task with args and environment
rubyonrails-talk
4
198
August 17, 2008
Running tests against a non-test environment
rubyonrails-talk
1
158
April 13, 2009