Try after(:deploy, :copy_config_files)
The "default" is a magic task and isn't the callback Watch your capistrano output you'll find your run cp tasks never run, not that they don't work. Using just :deploy should allow them to be called. On Oct 30, 2010, at 5:48 AM, kei <[email protected]> wrote: > Hi all, > > my deployment is successful. > > Currently I do this in my laptop everytime when I want to deploy my > staging environment > > cap staging deploy:setup > cap staging deploy > > I want to move files from some place in my server to a folder inside > the current/app/config/ > > i know that the following bash commands work when i am inside the > server > > cp /home/deploy/staging/database.php /var/www/staging/current/app/ > config/ > cp /home/deploy/staging/bootstrap.local.php /var/www/staging/current/ > app/config/ > > but strangely when i try to run it as a task after my deploy:default > it did not copy the files over. > > See my shortened deploy.rb here > > http://gist.github.com/655260 > > Please advise. > > Thank you. > > > -- > * You received this message because you are subscribed to the Google Groups > "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/capistrano?hl=en -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
