[Capistrano] Re: Production Database Privileges

2009-03-12 Thread Simone Carletti
In this case you might want to create a migration Rails environment pointing to the production database but with the migration user. Then, ask Capistrano to execute db:migrate with migration environment. With this configuration you don't need odd workarounds to switch users in the same production

[Capistrano] Re: cap:deploy update -- not working

2009-03-12 Thread Lee Hambley
And, if you did do as Jamis suggested, does your capfile include the load deploy.rb line ? - Lee 2009/3/12 Jamis Buck ja...@37signals.com Did you run 'capify' on your project directory? capify . (note the '.', which means 'current directory'). - Jamis On 3/11/09 5:40 PM, Josh Rachner

[Capistrano] Re: Production Database Privileges

2009-03-12 Thread Ryan
Great idea, everyone. Sounds a lot more straightforward - I'll go with the alternative migration user. On Mar 12, 4:41 am, Simone Carletti wep...@gmail.com wrote: In this case you might want to create a migration Rails environment pointing to the production database but with the migration

[Capistrano] Re: cap:deploy update -- not working

2009-03-12 Thread Josh Rachner
Yeah that worked. thanks On Thu, Mar 12, 2009 at 5:09 AM, Lee Hambley lee.hamb...@gmail.com wrote: And, if you did do as Jamis suggested, does your capfile include the load deploy.rb line ? - Lee 2009/3/12 Jamis Buck ja...@37signals.com Did you run 'capify' on your project directory?

[Capistrano] Re: cap:deploy update -- not working

2009-03-12 Thread Rafael G.
Hi josh, I recommend you that read the two sections of getting started[1] in capify.org [1]http://www.capify.org/getting-started/ josh.rach...@gmail.com wrote: I get this eror when I run the cmd cap:deploy update bash: cap:deploy: command not found The gem is installed, the path is in

[Capistrano] Re: Capistrano make work in ubuntu 8.04

2009-03-12 Thread Rafael G.
Your problem is that you're working as root!! root and normal user (normally) has differnt paths. root path is more restrictive than users path. Try as normal user. If you continue as root: Ruby don't need remember the path, it's done by your shell. Add the next line to your

[Capistrano] Re: Capistrano make work in ubuntu 8.04

2009-03-12 Thread E. Johnson
Josh- you should be able to accomplish what you want by adding the export PATH=... statement to your own ~/.bashrc (which will affect your own user only), or to /etc/profile (which will affect all users, system wide). hth, Erik On Thu, Mar 12, 2009 at 2:27 PM, Joshua Montross

[Capistrano] Re: Capistrano Idioms

2009-03-12 Thread Lee Hambley
My thoughts exactly - I wonder if this should become a part of capistrano-ext ? - Lee 2009/3/12 S. Robert James srobertja...@gmail.com Great code - how 'bout wrapping it up as an extension? On Mar 10, 2:42 pm, andynu and...@gmail.com wrote: I took a different approach. Since you have