#133 Capistrano Tasks (revised)
Mar 24, 2012 | 10 minutes | Tools, Deployment
Learn the basics of writing Capistrano tasks, how to set variables, and run commands on a remote server. Then peak into the internals of Capistrano's deploy tasks to see how they work.



I've tried to set it up so i can deploy to both a staging and production server, but it hasn't worked out yet. Any spproach to go about it? Its basically the same set of tasks, but with a different server location. Something like cap staging:deploy and production:deploy etc.
Awesome cast tho!
You can try multistage extension, have been using that one and been happy with it.
https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension
Guess I should've looked better :). Thanks!
Anyone experienced an issue when running rvmsudo, that the script hangs at a password prompt that can not be entered?
Then rvmsudo will hang at
[sudo] password for, you wont be able to enter a password.I solved this issue by executing a random sudo command in front of the rvmsudo command.. For example
sudo "whoami". But i wonder if there is a clean solution.Also anyone experienced an issue that they can not restart their services trough rvmsudo? For example
rvmsudo restart #{application}"throws /usr/bin/env: restart: No such file or directoryIm seeing a similar problem using RBEnv. Can't get past it. Any tips?
It appears that cap deploy:rollback doesn't rollback the precompiled assets at all. Does anyone have a recipe or solution?
First sign in through GitHub to post a comment.