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
1 answer

Capistrano mail recipe after a deployment with rails 3

I would like to send a mail "via" capistrano once I deployed. So after deployment is finished capistrano should send a mail with some information to a list of recipients. I found this plugin/gem: http://code.google.com/p/capistrano-mailer/ but it…
phlegx
  • 2,618
  • 3
  • 35
  • 39
1
vote
1 answer

one-liner for exit with message in capistrano

It is possible to have a one liner condition for exit with message? if condition info "some message" exit end
1
vote
3 answers

PHP Project Deployment

I would like to deploy our php projects, but I don't know how to go with our typical project. Our project is based on our CMS. We customize the CMS with extensions(plugins) and customized templates. The CMS core and CMS extensions are in SVN.…
Jaroslav Moravec
  • 428
  • 3
  • 6
  • 18
1
vote
1 answer

Capistrano updating my app from Sqlite3 to Rails, Gem::LoadError

I am upgrading my rails app from Sqlite3 to Postgresql. I am using Ansible to setup my server and Capistrano to deploy. I was able to successfully run ansible and now I'm trying to deploy my branch to an existing server that had Sqlite3 installed on…
Gabriel
  • 621
  • 7
  • 19
1
vote
1 answer

Kill a hung webistrano deployment

I'm currently trying to set up deployment using Webistrano/Capistrano. Due to a permission error, my test deployment has not completed. However, because it failed before the deployment pid was created the cancel button does not appear in the…
Maascamp
  • 348
  • 1
  • 3
  • 8
1
vote
2 answers

Run rake task from Capistrano if it exists

I need to a create a Capistrano pre-deploy step that runs a custom rake task. in deploy.rb: before 'deploy:starting', 'db:rollback_staging' namespace :db do desc 'Rollback staging db only if PR already deployed requires rollback' task…
Konstantin Rudy
  • 2,237
  • 25
  • 22
1
vote
0 answers

Capistrano continues with next tasks after assets:precompile for webpack fails when running locally

After assets: precompile fails when compiling the webpacker pack locally, Capistrano continues with the next steps of the deployment. Resulting in the application being deployed with the Javascript files missing. Is there something special that has…
jonfer
  • 1,524
  • 2
  • 14
  • 23
1
vote
0 answers

Capistrano can not read ENV variables

I'm using Capistrano for deploying my Rails app. and now Im facing error below when I enter commandcap production deploy` : ✔ 02 deploy@82.196.13.29 0.475s 04:44 webpacker:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rails…
Abdol Seed
  • 1,227
  • 1
  • 14
  • 23
1
vote
1 answer

AWS Inbound IP SSH Ranges to allow Capistrano deploy via Circle CI

When deploying to AWS EC2 what are the ranges you setup for the inbound approved IPs for ssh? I am trying to capistrano deploy from Circle CI after a successful github PR merge.
Chris Hough
  • 3,389
  • 3
  • 41
  • 80
1
vote
1 answer

Linking to multiple subdirectories using :repo_tree

My repository is set up similar to the following: repo_base - artwork - app - designsystem - api Since each of the other folders in the repo (e.g. app, api, designsystem) depend on artwork, I have symlinks in place when running locally.…
jwir3
  • 6,019
  • 5
  • 47
  • 92
1
vote
0 answers

Rails credentials do not update on new deploys

My rails app can only see credentials that were already in my config/credentials.yml.enc file when I first deployed my app. Any subsequent secrets that I've made or changes to existing ones are not picked up. Trying to troubleshoot my issue, from a…
1
vote
1 answer

How do I set older version of Capistrano as default version/gem system wide?

I'm setting up an environment on a new Ubuntu18.04 server and I need to use Capistrano 3.6.x but when installing using apt-get I continue to pull 3.11.x. I know I can create gem files for individual apps but I don't want to create Gemfiles for each…
user4174591
1
vote
1 answer

capistrano roles and host issue / bug?

Capistrano doesn't seem to handle roles appropriately - at least how i understood them. I can't get the following simple Capfile to work as intended: role :test1, "earzur@beta-app-01" role :test2, "earzur@beta-app-02" task :full_test, :roles =>…
zuzur
  • 85
  • 1
  • 6
1
vote
0 answers

How to deploy & configure thinking sphnix on production server

i have tried install & configure thinking sphinx on local host & its working fine. When i tried to install on production server i am confuse with how to configure thinking sphinx on server. here is the configure file development.sphinx.conf…
1
vote
0 answers

uninitialized constant Devise (NameError) unicorn

I deployed my rails app with capistrano to digitalocean and after adding new gem gem 'devise_token_auth', '1.0.0' after deploying I faced strange issue in unicorn log. It is bellow E, [2019-05-09T17:49:37.285001 #19550] ERROR -- : uninitialized…
a.kozubenko
  • 1,030
  • 3
  • 15
  • 24
1 2 3
99
100