Questions tagged [capistrano3]

Capistrano is an open source tool for running scripts on multiple servers; its main use is deploying web applications. It automates the process of making a new version of an application available on one or more web servers, including supporting tasks such as changing databases.

Learn more from their website: http://capistranorb.com/

Online Screencasts

825 questions
0
votes
1 answer

How to set RUBY_GC_MALLOC_LIMIT with capistrano 3 on thin restart?

I use capistrano 3, rvm und bundler for my deployment. The thin server are restarted like this: within release_path do execute :bundle, :exec, "thin restart -O -C config/thin/staging.yml" end This work fine and generate this command: cd…
Piioo
  • 759
  • 10
  • 24
0
votes
0 answers

Capistrano exit status

How to avoid message of exit status? I have many bash commands in my capistrano deploy script. At example: capture "mkdir -p #{path_img_out}/original" It calls many times and print output: DEBUG [dd6ca4fa] Command: mkdir -p…
mystdeim
  • 4,802
  • 11
  • 49
  • 77
0
votes
2 answers

Capistrano 3 error when deploy

Following is the debug log, [a4e2341c] Running /usr/bin/env [ ! -d ~/.rbenv/versions/2.1.0 ] on xxx.xxx.xxx [a4e2341c] Command: [ ! -d ~/.rbenv/versions/2.1.0 ] [a4e2341c] Finished in 6.761 seconds with exit status 1 (failed). what does this…
fengd
  • 7,551
  • 3
  • 41
  • 44
0
votes
1 answer

Unable to start Unicorn server in capistrano 3

This is my config/unicorn/development.rb app_path = "/home/ec2-user/apps/app_dev/current" worker_processes 1 preload_app false timeout 300 listen 3333 working_directory app_path pid "#{app_path}/tmp/pids/unicorn.pid" rails_env =…
krs
  • 1,467
  • 5
  • 17
  • 30
0
votes
0 answers

Capistrano Set Environment Variables

Is there a way to set the environment variables on an Ubuntu box with a Capistrano deploy? I have a file with all the environment variables that need to be set. Right now when I deploy or those change I manually ssh into the box and set them but was…
arhea
  • 454
  • 2
  • 5
0
votes
0 answers

capistrano 3 perimission issues on bundle

i am getting this error suddenly while deploying rails 4 with capistrano 3. i deployed before there was no problem with nokogiri. it started appearing suddenly Errno::EACCES: Permission denied - …
surendar
  • 656
  • 1
  • 9
  • 27
0
votes
1 answer

Capistrano 3 upload hangs

After upgrading to capistrano 3 and solving a lot of trouble there is one thing I cant get working. The new upload functionality in mij script hangs and capistrano wont continue. My original Capistrano 2.x script was partly created from examples I…
Stefanius
  • 117
  • 1
  • 10
0
votes
1 answer

Capistrano Production Deploy Issue

I ran the following command to prepare my rails application on a Rackspace cloud and observed the following errors. cap production deploy --trace ⏎ ✹ ** Invoke production…
fr_muses
  • 1,475
  • 2
  • 10
  • 10
0
votes
1 answer

Capistrano 3 Wordpress deployment with cap staging deploy on bitbucket fails

I am trying to do a Capistrano 3 deploy for my Wordpress setup as per this screencast I am deploying to an ubuntu 12.04 server So here is my deploy.rb file: set :application, 'dladv' set :repo_url, 'git@bitbucket.org:username/repo.git' set :branch,…
Amit Erandole
  • 11,995
  • 23
  • 65
  • 103
0
votes
1 answer

run_locallly ssh task that exits

I have this task in may deploy.rb file: desc 'open ssh session in background' task :ssh_in_background do run_locally do execute "ssh -o 'ExitOnForwardFailure yes' -NMS ~/.ssh-tunnel -f #{fetch(:rails_env)}-#{fetch(:application)}" …
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
0
votes
0 answers

Capistrano deploy error DigitalOcean Ubuntu 12.04

I am following this tutorial to deploy my RoR 4 application on VPS (DigitalOcean) with nginx, Passenger and capistrano: http://gorails.com/deploy/ubuntu/12.04 But when I run 'cap production deploy', I get the following error: .. .. ** Invoke…
0
votes
1 answer

Capistrano 3 with symlinks

I have been 3 days trying to deploy my app (Ruby on Rails 4) with Capistrano 3, but I really couldn't find an answer. I got an error in console that says: ln: creating symbolic link…
Miguel Nieva
  • 11
  • 1
  • 3
0
votes
1 answer

Bundle and rake commands are not recognized with Capistrano 3

I have installed Capistrano 3 and I'm not able to get my app to call bundle install and precompile my assets on deploy. I've seen that I have to configure my environment for RVM there http://rvm.io/deployment/capistrano#environment But I was…
Pacane
  • 20,273
  • 18
  • 60
  • 97
0
votes
1 answer

How to specify global sshkit limit in capistrano deploy.rb file

by default it's :parallel, which causes much troubles when there were many hosts. I found that sshkit has an option called limit, but did not find how to set it globally.
foxban
  • 41
  • 4
0
votes
1 answer

Changing rvm_ruby_version doesn't change the ruby version

In my deploy.rb I have set :rvm_ruby_version, '1.9.3' In ../shared/bundle/ruby/ I see 1.9.1 Why is this not 1.9.3? Update I added ruby 1.9.3 to my gemfile. I am seeing commands like this: /home/rails/.rvm/rubies/ruby-1.9.3-p448/bin/ruby…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
1 2 3
54
55