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

Capistrano deploy to all servers but run some tasks on only one

I was deploying my Symfony2 application on one server only for a few month and it was perfect, but as I've added more servers, I'm stuck when I want to update all my servers at the same time, but run some commands only once (like database migration,…
LaurentG
  • 474
  • 4
  • 16
4
votes
0 answers

How to set puma to start on server start/reboot with capistrano?

I was going through puma upstart script and I tried to set it up on my server. But, after some trial and error I realized that I shouldn't be doing this manually and my deployment script i.e. capistrano should be doing this for me. I google this…
Vedant Agarwala
  • 18,146
  • 4
  • 66
  • 89
4
votes
2 answers

Capistrano-Puma Not Starting Puma Server

Issue Facing When I run bundle exec cap production puma:start, I get the response that Puma has started successfully: DEBUG [e4382d1e] * Pruning Bundler environment DEBUG [e4382d1e] DEBUG [e4382d1e] [2599] Puma starting in cluster…
songyy
  • 4,323
  • 6
  • 41
  • 63
4
votes
3 answers

Undefined method in rake file

I get error NoMethodError: undefined method `symfony_console' in my task defined in rake file (lib/capistrano/tasks/my_tasks.rake) task :migrate do on roles(:all) do symfony_console('doctrine:migrations:migrate', '--no-interaction') …
Arthur
  • 2,869
  • 14
  • 25
4
votes
1 answer

Puma gem not found when deploying with Capistrano

I want to deploy my application with Capistrano and Puma to a VPS, but every time I get this error: INFO [17b91266] Running RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.4 ~/.rbenv/bin/rbenv exec bundle exec puma -C…
Pavel
  • 2,103
  • 4
  • 23
  • 41
4
votes
2 answers

Capistrano - find current deployed version

Using Capistrano 3.4, is there a command to find the currently deployed version (branch and tag/revision)? In the deployed root directory there is a file revisions.log. I could create a custom command to parse it, but especially in the case of a…
marcovtwout
  • 5,230
  • 4
  • 36
  • 45
4
votes
4 answers

Capistrano 3 deploy fails connecting to GitHub - Permission denied (publickey)

I have the following deploy script set up with Capistrano v3 and capistrano/symfony gem. I am deploying to an AWS EC2 instance with Ubuntu 14.4 I am connecting with a .pem file downloaded from AWS. I have the following in my deploy.rb set :pty,…
Patrick
  • 358
  • 6
  • 20
4
votes
1 answer

No such file or directory - connect(2) for "/tmp/puma-status-1439451994589-14316"

I want to deploy my rails through Capistrano with Puma and Nginx. I have configured deploy.rb for puma and added required gems in gem files. I am able to run initial deploy command as 'cap production deploy:initial' and able to access my rails app…
Lalit Kumar Maurya
  • 5,475
  • 2
  • 35
  • 29
4
votes
0 answers

How to run a capistrano task on another stage?

My root capistrano has a task that dumps the database: cap production dump or cap staging dump will dump the database. Now, I want to define a task in staging that will run this task on production. I could do desc 'Updates the database of acceptance…
berkes
  • 26,996
  • 27
  • 115
  • 206
4
votes
0 answers

Capistrano current/ directory doesn't get created

The current directory doesn't get created by capistrano when trying to deploy for the first time. I try to deploy:check the project and everything is just fine, but when I actually deploy the process ends up in error: DEBUG [8d5bfb3a] Directory…
ngw
  • 1,222
  • 1
  • 14
  • 34
4
votes
1 answer

How to set current_path in Capistrano 3

Is there a way to set the current path folder in Capistrano3. I can see it's now part of the Capistrano::DSL::Paths module but I'm not sure how to change it.
Leevi Graham
  • 654
  • 8
  • 19
4
votes
2 answers

Get path to capistrano shared path from ruby

I know that I can get the location of my rails app with Rails.root: > Rails.root => # I am looking for the function to call to get capistrano's shared folder, which in this case is found…
Rick Smith
  • 9,031
  • 15
  • 81
  • 85
4
votes
1 answer

capistrano ssh agent forwarding - Permission denied (publickey)

agent forwarding is not working for an old repo, but it works for other repos/servers. I'm a collaborator of the repo on Github so I should be able to deploy: bundle exec cap production deploy However, I get: DEBUG [4639b372] Command: cd…
HectorPerez
  • 744
  • 6
  • 11
4
votes
2 answers

Capistrano deploy to different path on same server

I am trying to deploy my application using capistrano. But I want to deploy my application to multiple paths of the same server.For example If for the first run I want to deploy it to below path set :deploy_to, '/home/a/some_path/ Once completed…
Arihant Godha
  • 2,339
  • 2
  • 26
  • 50
4
votes
1 answer

Why isn't my Rake task using the environment that I used in my Cap command?

I'm calling bundle exec cap staging demo:foo. The demo:foo Cap task calls a Rake task that prints out Rails.env. BUT... the Rails task is printing "development" instead of "staging" as expected. Why is it doing that? Why isn't it using whatever…
Grant Birchmeier
  • 17,809
  • 11
  • 63
  • 98