[Capistrano] Re: How can cap pull data back from production server?

2006-10-29 Thread mike
Thanks Jason. That's something I hadn't thought of. I think I would run into issues with NAT though when I'm on the road.I'm going to see if I can add 'get' to capistrano. This has led me to Jamis's Net::SSH library which is really well documented and pretty exciting.So thanks Jamis for Net::SSH.

[Capistrano] Re: How can cap pull data back from production server?

2006-10-29 Thread Jason Perry
You could always just have a capistrano task to execute scp on the production server(s) to transfer the files back to your machine. There's some stuff you can do (with an environment variable, I think) to get a reference back to the ssh client's IP as well, so you don't even have to hard c

[Capistrano] Re: How can cap pull data back from production server?

2006-10-29 Thread Jamis Buck
Mike, If you're not against reading code, you can look at the implementation of the file transfer mechanism in capistrano. Currently it only works one way ("put"), but it shouldn't be hard to implement a "get" function that works similarly. - Jamis On Oct 29, 2006, at 5:38 PM, mbailey wr

[Capistrano] Re: spinner task calls non-existent rails script

2006-10-29 Thread willismorse
Great, thanks. I'll give that a shot. I gather everyone's moving real quick to mongrel now. Those of us with a shared server account are stuck with fcgi for now, though. --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For mor

[Capistrano] Re: spinner task calls non-existent rails script

2006-10-29 Thread willismorse
Ah, that makes a lot more sense. I take it this is a FAQ? In fact, now on rereading the entry in the Cap manual, it seems obvious. Sorry about wasting bandwidth, and thanks for the quick response. Capistrano looks pretty amazing... I really want to get it working. --~--~-~--~~--

[Capistrano] How can cap pull data back from production server?

2006-10-29 Thread mbailey
I'm really impressed with Capistrano and am beginning to convert my personal deployment scripts into capistrano scripts. One script I always write for my rails projects is db_pullback which runs mysqldump on the production database and pipes the output through ssh into mysql on my workstation. s

[Capistrano] Re: spinner task calls non-existent rails script

2006-10-29 Thread Charles Brian Quinn
There's a "spin" script here: http://www.slingshothosting.com/support/capistrano that might work for you, but it requires some params passed to it, so check the capistrano script as well. I'll have to admit that I've abandonded external fcgis on all newer servers we deploy for mongrel, though.

[Capistrano] Re: deploying just one file (which has changed)???

2006-10-29 Thread Jamis Buck
Greg, You can do something like COMMAND="svn up /blah/blah/blah/blah/config/environment.rb" cap invoke restart That will run the given command on your servers (via the 'invoke' task) and then restart your fcgi's (via 'restart'). I'm thinking through a way to make this more convenient,

[Capistrano] Re: spinner task calls non-existent rails script

2006-10-29 Thread Jamis Buck
The script/spin script is one that you need to write. It ought to fire up your fcgi's or mongrels or whatever you are using. Typically, it contains a simple call to script/process/spawner with the appropriate arguments. Note that if you're using fastcgi where the fcgi processes are manage

[Capistrano] spinner task calls non-existent rails script

2006-10-29 Thread willismorse
I just started working with Capistrano to deploy to my Dreamhost-based site, which uses FastCGI. I'm having a problem when I run the cold_deploy task. It fails like this: * executing task spinner * executing "mydomain.com/current/script/spin" servers: ["mydomain.com"] [mydomain.com] exe