I'm using Capistrano run a remote task. My task looks like this:
task :my_task do
run "my_command"
end
My problem is that if my_command has an exit status != 0, then Capistrano considers it failed and exits. How can I make capistrano keep going when exit when the exit status is not 0? I've changed my_command to my_command;echo and i...
Hello,
I'm a php developer using capistrano, with multistage support, to deploy my application to my production servers. Hence, I have very little ruby or rails knowledge.
I've figured out enough to add a new function called 'flush' to my deploy.rb script which invokes a php script on all my production servers. The purpose of the 'flus...
I'm currently using Capistrano along with the multistage extension to manage deployments. Even after setting :domain in config/deploy/stage.rb, when calling 'cap stage deploy', its prompting me for a domain name for the project. What setting am missing?
Here is my deploy.rb
set :stages, %w(vm rtpstage ciscostage ciscodemo hp)
require ...
I've an issue at the moment where we are running a CMS within a site
(browsercms) that lets the user upload files. However, every time I
do a deploy Capistrano runs a hard reset thus nuking any uploaded
files.
Does anyone have any suggestions as to how to prevent the hard reset,
and just do a pull, or a way of moving the uploaded files...
I am using craken to run cron processes on my aws machine instance. I have defined the following custom tasks in Capistrano:
namespace :craken do
desc "Install raketab"
task :install, :roles => :cron do
set :rails_env, "production" unless exists?(:rails_env)
set :env_args, (exists?(:env_args) ? env_args : "app_name=#{applica...
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just fine to copy over application files from the SVN to the rails container, however when I do it now, it copies the folders but they are all empty. Any ideas of why this would happen or how to fix it?
...
Hi,
I recently upgraded to Ubuntu 9.04 and I have issues using gems.
I have installed ruby, ruby gems and rails using apt-get
The rails command do work.
I have then installed capistrano and other gems (such as heroku).
In order to do that, I have used the command
sudo gem install XXX
When I want to use the cap command it does not w...
I am wondering how I can target a specific commit SHA in Git for deployment, using Capistrano? It should be something like
cap deploy --version=<sha targeted>
Can't seem to find the answer to this after a lot of searching.
...
What are some best practices and general theory of multi-stage deployment for web apps?
I'm particularly interested in deploying Rails apps using Git, Capistrano, and Passenger, and I've found posts that discuss the nuts and bolts of the process:
Capistrano: Multistage
Introducing AutoTagger
What considerations should I take with re...
I recently turned a couple of my plugins into submodules and realized that when you "git clone" a repository, the submodule directory will be empty. This makes sense for co-developers to initialize their submodules and update.
However, when I deploy with capistrano the submodule code will obviously not be deployed which causes proble...
I have a set of rake tasks where I need to invoke capistrano at some point. Edwin Goei's blog suggests shelling out to capistrano via "sh".
Is there a simpler way? It would seem you should be able to call the appropriate tasks programmatically. Thanks in advance.
...
I am hosting my assets on s3. In production, rails is looking for /javascripts/cache/all.js and /stylesheets/cache/all.css. I'm using a plugin to swoop the public directory over to s3 when I deploy with cap. The problem is that rails doesn't create these cache files until they are requested for the first time, so they aren't around du...
I’ve been trying to get whenever running on an ec2 instance that was created with ec2 on rails.
When I deploy with Capistrano it indicates that the crontab was written, but when I log into the server and run crontab -l it does not seem to have been changed.
If I go into the release folder and manually run whenever --write-crontab then...
I like the idea of using submodules, but I am worried that I am leaving my code in someone else's hands. The main issue is that every time I deploy with capistrano, a new copy of the submodule is checked out since I am using:
set :git_enable_submodules, 1
So what happens if someone commits broken code? Then I app breaks on deploy. ...
Hello all,
I am trying to use Capistrano to connect over ssh with svn in order to deploy an app to prod from a windows dev box (Aptana Studio Community Edition). When I run 'cap deploy' it starts executing tasks in deploy.rb, then it asks for a password for user account 'a' but I need to connect using account 'b' not 'a'. User account '...
For my RubyOnRails-App I have to start a background job at the end of Capistrano deployment. For this, I tried the following in deploy.rb:
run "nohup #{current_path}/script/runner -e production 'Scheduler.start' &", :pty => true
Sometimes this works, but most of the time it does not start the process (= not listed in ps -aux). And the...
Hi All,
I have a bit of a situation. I've consumed about fourty-eleven different tutorials/books/videos on Capistrano, and none of them touch on out-of-the-norm cases. They all assume straightforward setups -- which, in my experience, is rarely the case.
Basically my situation is as follows:
1) I am developing the application on a s...
Up until now I've been deploying Rails apps to our Apache/Passenger setup using a simple Rake task that I wrote. I haven't tried to mess around with Capistrano or Vlad the Deployer.
However, now more developers are coming on board, and I'm interesting in arranging things so that the deployment process runs the tests first and won't depl...
Hey all,
I'm using deprec with password-protected svn. I need to use a different login/pass for svn than for logging into the server. The deprec way to do that is :svn_username, as far as I can tell, but it doesn't seem to be working. deprec (2.0.13), capistrano (2.5.8). Snip of deploy.rb / bash: http://pastie.org/pastes/545876
Than...