Questions tagged [capistrano]

Capistrano is a developer tool for deploying web applications. It is typically installed on a workstation, and used to deploy code from your source code management (SCM) to one, or more servers.

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 running database migrations.

Capistrano is written in the Ruby language and is distributed using the RubyGems distribution channel. It is an outgrowth of the Ruby on Rails web application framework, but has also been used to deploy web applications written using other frameworks, including ones written in PHP.

Capistrano is implemented primarily for use on the bash command line. Users of the Ruby on Rails framework may choose from many Capistrano recipes; e.g. to deploy current changes to the web application or roll back to the previous deployment state.

Originally called SwitchTower, the name was changed to Capistrano in March 2006 because of a trademark conflict.

Resources:

Related tags:

Implementation specific tags

When you are asking a question about capistrano you could also add more specific tags. Here is the list of available tags:

Online Screencasts

  1. Codeschool Deployment: Capistrano - Part 1
  2. Codeschool Deployment: Capistrano - Part 2
  3. Railscasts Capistrano Tasks - Do you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode.
  4. Capistrano Tasks (revised) - Learn the basics of writing Capistrano tasks, how to set variables, and run commands on a remote server
3868 questions
1
vote
0 answers

How do I deploy Capistrano on a server with Rbenv when development environment is using RVM?

Bundle won't install upon Capistrano deploy. Everything else with the cap deploy is working fine. The production environment is Ubuntu Debian 16.04 running Rbenv. The development environment is using RVM. I was wondering if there was a way to set…
1
vote
2 answers

Rails Capistrano deploy PG::ConnectionBad: FATAL: password authentication failed

deploy:migrating 01 /usr/local/rvm/bin/rvm default do bundle exec rake db:migrate 01 rake aborted! 01 PG::ConnectionBad: FATAL: password authentication failed for user "customuser" ... Tasks: TOP => db:migrate 1) I can normally…
1
vote
1 answer

deploy specific revision and branch from git with capistrano

I am trying to deploy a specific revision to a server using Capistrano (we are trying to add a new server to the cluster and of course want it to have the same revision as the other machines). The issue seems to be that we are working on a…
phil
  • 4,668
  • 4
  • 33
  • 51
1
vote
0 answers

Problem with Capistrano and Bitbucket hosted gem

When I run the command cap production deploy from my local console almost all seems to work because bundler:install generates errors: $ cap production deploy 00:00 rvm1:hook ... OK (no error) 00:03 git:wrapper ... OK 00:06 git:check …
Backo
  • 18,291
  • 27
  • 103
  • 170
1
vote
0 answers

Devise locales pointing to previous release path

I am getting An I18n::InvalidLocaleData occurred in users#social_sign_in: can not load translations from /home/releases/20190221131459/config/locales/devise.en.yml: #
dArK kNiGhT
  • 151
  • 2
  • 12
1
vote
3 answers

capistrano set and get environment variables from config to rake

I am trying to define an environment variable in /config/deploy/staging.rb like : set :default_env, { 'environment' => 'preprodv1' } Then I am trying to acces this variable in my file /lib/capistrano/tasks/build.rake like : desc "Builds the…
1
vote
1 answer

How can I indicate the Git username and password in Capistrano's deploy.rb?

I'm using github to store the repository, and I'm reading Deploy with Capistrano: Remote caching will keep a local git repo on the server you’re deploying to and simply run a fetch from that rather than an entire clone". Since the server where…
MEM
  • 30,529
  • 42
  • 121
  • 191
1
vote
1 answer

Windows ssh agent forwarding and cap\git deploy problems

Capistrano fails to connect to git repo (bitbucket) with ssh agent forwarding from windows. Environment: Windows 10 Ruby 2.4.4 for Windows installed Rails 5.2.2 Cap 3.11.0 OpenSSH_for_Windows_7.7p1 Can successfully ssh to host and git ls-remote or…
Michael
  • 59
  • 1
  • 7
1
vote
0 answers

Capistrano: Permission denied (publickey) though ssh git@github.com works

I'm trying to configure Capistrano to deploy my Node.js project to one of my servers. I created an ssh key, imported it to github, my server and my machine (with ssh-add). ssh-add -l lists the key, executing ssh git@github.com succeeds - it…
artus9033
  • 591
  • 8
  • 20
1
vote
1 answer

Take Rails app offline during deployment

I was just wondering if there something similar to App_Offline.htm (it cuts all dynamic requests to the app and returns a static page) in Rails/Passenger/Capistrano to? I am looking for the following flow when deploying to the server: Pull the…
Dmytrii Nagirniak
  • 23,696
  • 13
  • 75
  • 130
1
vote
1 answer

Web application could not be started after deployment in digital ocean

-------- The exception is as follows: ------- Your bundle is locked to activesupport (4.2.8), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of activesupport…
Tauseef Mamun
  • 126
  • 1
  • 3
  • 11
1
vote
0 answers

Rails app, capistrano, nginx & puma 502 bad gateway

I'm getting a 502 when hitting my rails app. 2018/12/22 20:12:37 [error] 22034#22034: *81 connect() to unix:/home/user/project/shared/tmp/sockets/puma.sock failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server:…
Tyler
  • 19,113
  • 19
  • 94
  • 151
1
vote
1 answer

Choosing the right build and deployment tools

I have a very large, mostly HTML/SSI site that I manage part-time and do weekly deployments on in addition do being an enterprise Magento developer. The site in question has ~5000 static HTML files and requires a lot of upkeep to manage deployments.…
philwinkle
  • 7,036
  • 3
  • 27
  • 46
1
vote
3 answers

Capistrano - deployment Rails app to Staging

I have a Rails app on production and I want to deploy my app to Staging using Capistrano before I roll out to production so my team has made a copy of the application on different host which is supposed to act as Staging. I have 2 separate…
jedi
  • 2,003
  • 5
  • 28
  • 66
1
vote
1 answer

Problems with Capistrano's deploy:migrate

I'm getting the following error while trying to deploy:migrate with Capistrano: [err :: 127.0.0.1 ] /home/synapse/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:388:in `bin_path': can't find gem rake ([">= 0"]) with executable rake…
synapse
  • 5,588
  • 6
  • 35
  • 65
1 2 3
99
100