#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.
- Download:
- source code
- mp4
- m4v
- webm
- ogv
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?
The deploy.rb is the configuration that drives the cap command. Recipes that aren't included in the configuration won't be available to the cap command. Use this site for more writing information. http://www.essayscouncil.com
Very useful stuff, had problem with deploy.rb for a while, finally found the solution.
https://www.rebelmouse.com/energysolutions/the-use-of-depleted-uranium-1416882594.html
We will provide the complete details
Very useful stuff, had problem with deploy.rb for a while, finally found the solution.
dvdv
I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job!
Thank your visit to our website! Click to play:
Thanks a lot! It is definitely an terrific internet site!
I like the app. Thanks For the Information.
great
great post admin thanks for this.
greaT POST Admin really worthy post thanks.