[Rails] Trouble with migrate over Switchtower

Mike Zornek listguy at mikezornek.com
Wed Feb 1 06:54:28 GMT 2006


>From my blog:
http://clickablebliss.com/blog/2006/02/01/trouble_with_migrate_over_switchto
wer/

> Lately though I¹ve run into an issue
> trying to run migrations over Switchtower.

> So I¹ll prepare a migration and commit it to the repository. I¹ll then do a
> deploy to get the latest version up on the production server. Next, I¹ll run
> the following to tell the production server to run a migration:

>     rake remote_exec ACTION=migrate

> It won't work though, in the errors I get:

>     bash: line 1: rake: command not found.

> I have no idea why this can¹t find the rake command. If I ssh into the
> production machine and manually run that command:

>     cd /webserver/cbwebsite/current && rake RAILS_ENV=production migrate

> , it works fine. I previously
> set up my paths in both .bashrc and .bash_login. During some troubleshooting I
> even added a ~/.ssh/environment file and added the PATH there ‹ nothing seems
> to fix this.

> Any ideas?

Thanks in advance for your help.

~ Mike
-- 
Work: http://ClickableBliss.com
Play: http://MikeZornek.com




More information about the Rails mailing list