I'm trying to point the Hudson app at the test environment in my MySQL database with Rails. Do I need to change the environment variable RUBY_ENV? If so, where do I implement this?
A:
I believe you're referring to RAILS_ENV
variable? If you're writing the commands to hudson then something like this might work:
$ rake test RAILS_ENV=test
Although rake test
implicitly uses the test environment. If it's needed for other commands just pass RAILS_ENV=test
to them.
Eimantas
2010-07-08 17:33:23
So where do I implement this code? I'm a total Rails/Hudson newbie.
C. Ferguson
2010-07-08 18:06:01
When you're editing project details, enter them [Build :: Execute Shell] text area.
Eimantas
2010-07-08 18:30:18
Thanks for the advice, but I tried it and nothing different happened. Hudson said that the build had no changes from the last one. I entered that command in the Execute Shell text box and Saved it.
C. Ferguson
2010-07-08 18:41:08