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
5
votes
4 answers

Can I Deploy With Capistrano Without SCM?

Capistrano configfile has the config set :scm,:git and the :repo_url and :branch Can I deploy with capistrano without scm? set :scm, :none set :repository, "." What is the benefit of scm config in the Capistrano deploy?
wcc526
  • 3,915
  • 2
  • 31
  • 29
5
votes
2 answers

cap deployment is failing with "LoadError: cannot load such file -- sidekiq/capistrano"

While upgrading the app's rails version to 4.1, I have upgraded all gems with "bundle update" But after upgrading, my Capistrano script was failing with the following error, cap aborted! LoadError: cannot load such file -- sidekiq/capistrano
5
votes
2 answers

Capistrano 3 Permission Denied

I'm converting an app from capistrano version 2 to version 3 and now i'm getting this error: DEBUG [7095ead3] Running /usr/bin/env git ls-remote git@myapp.git.beanstalkapp.com:/myapp/myapp.git on myapp.com DEBUG [7095ead3] Command: (…
Catfish
  • 18,876
  • 54
  • 209
  • 353
5
votes
1 answer

Capistrano 3 is not deploying new code

I'm having this weird problem with Capistrano 3. The code it deploys is never updated, unless I delete the repo folder in my app folder on the server. If I delete the repo folder and deploy, it'll update the code. # config valid only for Capistrano…
Chris Bui
  • 1,055
  • 1
  • 13
  • 24
5
votes
1 answer

How to get Capistrano 3 to use RVM ruby?

Gemfile: gem 'capistrano', '~> 3.0.0' gem 'capistrano-rails' gem 'capistrano-bundler' gem 'capistrano-rvm' gem 'capistrano3-puma' Deploy.rb: set :rvm_type, :user set :rvm_ruby_version, '2.1.1' set :default_env, { rvm_bin_path: '~/.rvm/bin'…
Simpleton
  • 6,285
  • 11
  • 53
  • 87
5
votes
2 answers

Capistrano 3 change ssh_options inside task

I trying to run capistrano v.3 task in same stage with diferent ssh_options. my production.rb say: set :stage, :production set :user, 'deploy' set :ssh_options, { user: 'deploy' } With this configuration capistrano connect with user deploy which…
Montells
  • 6,389
  • 4
  • 48
  • 53
5
votes
2 answers

Capistrano 3. To set bash shell on server instead csh

When cap3 try to execute comands on my FreeBSD server - I have an errors and my cap3 tasks doesn't work DEBUG [0bb99d53] Command: if test ! -d /home/web_server/data/www/capistrano/site/shared/dumps; then echo "Directory does not exist…
the-teacher
  • 589
  • 8
  • 19
5
votes
2 answers

When Capistrano3 does mkdir, permission denied

When I did bundle exec cap production deploy, i got error messages like mkdir: cannot create directory /usr/share/nginx/www/appname/releases/20131216155457: Permission denied Capistrano3 doesn't have set use_sudo and default_run_options. I read that…
Yuki Ishikawa
  • 143
  • 2
  • 7
5
votes
2 answers

Capistrano 3 - Understand tasks

i'm trying to understand how capistrano 3.1 is working, but because of its lack of documentation (its capistrano, so...), im running below my understanding. Let me explain. Here's a snippet taken from capistrano/rails gem namespace :deploy do …
user2959941
  • 51
  • 1
  • 2
5
votes
2 answers

Capistrano 3: How to store git revision into a file?

Is there a way how to fetch a git revision variable from Capistrano 3? I can't figure out how to access capistrano variables: namespace :deploy do after :finished, :set_current_version do on roles(:app) do # dump current git version …
Tombart
  • 30,520
  • 16
  • 123
  • 136
4
votes
2 answers

Capistrano 3: How can I suppress status output?

I've created a Capistrano task to execute a rake command. I plan to redirect the output (STDOUT) to a file. E.g. cap production invoke:rake TASK=mytask > out This works, but my output includes some additional Capistrano status output, e.g. 00:00…
Felix Livni
  • 1,164
  • 13
  • 24
4
votes
1 answer

How can I deploy but not symlink/restart using Capistrano 3?

Capistrano v2 had two helpful tasks: cap deploy:update_code would do a full deployment to a new releases/ directory, but not change the current symlink or start/restart the server (so the server keeps running the current version without…
bjnord
  • 2,734
  • 2
  • 23
  • 24
4
votes
0 answers

Puma not creating socket file while deployed with Capistrano

I have followed the tutorial here on ow to deploy a Rails App using Capistrano and Puma. I had initially used with a Rails 4 and all worked fine, however I'm now trying with Rails 5 App and is not working. I've made some changes due to changes in…
WagnerMatosUK
  • 4,309
  • 7
  • 56
  • 95
4
votes
1 answer

capistrano's Capfile conditional require based on stage

I want to require capistrano/postgresql only if stage is not production. However, this Capfile always require capistrano/postgresql because fetch(:stage) is empty. ( puts fetch(:stage) || "no stage" in Capfile prints "no stage") require…
yskkin
  • 854
  • 7
  • 24
4
votes
2 answers

Capistrano can't deploy from non-master branch

I'm using Capistrano (3.7.1) to deploy my Rails 5 application to a VPS. I have 2 major branches I'm using in git: master, for stable, production-ready code, and develop, for WIP code. I wanted to deploy the develop branch to a staging server, but it…
mindseyeblind
  • 119
  • 10