I recently upgraded to the beta gems. I am trying to use script/runner: script/runner "FlickrUtilities.update_all" --environment=production This fails as it tries to connect to my development database. No matter what string I use for the environment, -e or --environment, it always tries to use development. ? H
On Oct 12, 2005, at 9:25 AM, Hunter Hillegas wrote:> I recently upgraded to the beta gems. > > I am trying to use script/runner: > > script/runner "FlickrUtilities.update_all" --environment=production > > This fails as it tries to connect to my development database. No > matter what > string I use for the environment, -e or --environment, it always > tries to > use development.I have just fixed this in the trunk, sorry about that. In the meantime, you can do the following on Unix systems: RAILS_ENV=production script/runner "FlickrUtilities.update_all" - Jamis
Did you try -eproduction ? Hunter Hillegas wrote:>I recently upgraded to the beta gems. > >I am trying to use script/runner: > >script/runner "FlickrUtilities.update_all" --environment=production > >This fails as it tries to connect to my development database. No matter what >string I use for the environment, -e or --environment, it always tries to >use development. > >? > >H > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >