Re: [capistrano] capfile syntax help

2009-11-19 Thread Nick Howard
I don't think it matters too much where you put it. Just add it somewhere that makes sense. Then to have it run automatically after deploy you just add an after call somewhere in the body of your recipe file. So if you were to name it :restart_services and put it in the :remote namespace, you could

[capistrano] capfile syntax help

2009-11-19 Thread Robin Bowes
Hi, I've got the following block in my capfile: # Custom tasks for our hosting environment. namespace :remote do desc <<-DESC Create directory required by copy_remote_dir. DESC task :create_copy_remote_dir, :roles => :web do print "creating #{copy_remote_dir}.\n" run "mkdir

[Capistrano] Capfile with highline menu

2008-04-16 Thread shadowbq
Anyway.. I posted a simple highline menu enabled capfile.. (its also in the file section) I haven't seen anyone do this.. This actually helps me. #example capistrano menu using highline menu system # Published under BSD license # written by:shadowbq - http://shad0wbq.blogspot.com # verified on:

[Capistrano] Capfile task / MySql command

2007-09-13 Thread meSleepy
Hello Poppets, Capistrano 2 is great stuff! When I run 'cap deploy:cold' I hit a hurdle. I get an error saying 'rake aborted unknown database'. I have checked everything back to front and still no idea. So anyways, I create a task in the Capfile: task :before_migrate, :roles => :db do run "m

[Capistrano] Capfile

2007-06-27 Thread Matt M.
Hi, I'm using Capistrano for non-Rails deployment. I'd like to be able to use just the Capfile and not config/deploy.rb. The problem is that Capfile doesn't have an extension so text editors don't recognize it as Ruby. Would it be possible to get it so Capistrano also loads a Capfile.rb? Matt --