Questions tagged [rvm-capistrano]

Ruby's gem RVM Capistrano

Integrating RVM with Capistrano provides the normal benefits of RVM when operating in the context of Capistrano deployment tasks. These include:

  1. Ensuring all Capistrano tasks use the correct Ruby and gems (including gemset support).
  2. Automatic installation of RVM and Ruby via Capistrano. Only possible when using rvm-capistrano gem.
  3. Manage gemsets via Capistrano, allowing you to install or update project gems as part of your deployment.

Here's the github for the repo: https://rubygems.org/gems/rvm-capistrano

143 questions
0
votes
1 answer

How to have sudo -u user for all capistrano tasks that are to be run?

NOTE: I am using Capistrano 3.2.1 and Rails 4.1.1. Basically I need Capistrano to append sudo -u deploy-user for all the tasks by default because of the server permissions arrangement on my-remote-server. This is my config/deploy.rb file: # config…
0
votes
1 answer

Argument count error with Capistrano 3 deployment

My deployment fails with this error : http://pastie.org/9494311#10,12 My problem is, I can't find where the argument count error is happening !
0
votes
1 answer

Capistrano Deployment failure : /etc/init.d/unicorn: line 42: rvm-shell command not found

I am deploying to Server using Unicorn, and capistrano in rails.... But at the final step of deployment . Capistrano exists out with this error: INFO [47010f4f] Running /usr/bin/env service unicorn_app restart on xyzdomain.com DEBUG [47010f4f]…
0
votes
1 answer

Deploying a Rails site giving a cryptic error I can't find out what it means

This site has been up and running for quite some time. I don't think anything has been changed in terms of gems and such. I am running cap deploy and receive this cryptic error below. The release name "20140407162521" that is complaining about…
jeffci
  • 2,537
  • 6
  • 37
  • 59
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
1 answer

Install rvm with rvm1-capistrano3 only if it is not installed

I use rvm1-capistrano3 in my project. When I run cap staging deploy, I would like to install rvm, if there is no rvm installed. But if there is rvm, I would like to skip this step. How do I achieve it with rvm1-capistrano3?
Alex Smolov
  • 1,831
  • 4
  • 24
  • 43
0
votes
1 answer

Set PassengerRuby path from Capistrano

I'm using Capistrano to deploy multiple Rails apps to an Apache and Passenger 4 server. I'm also using the rvm-capistrano gem to install new versions of Ruby on the server. As I understand it, the PassengerRuby line inside each VirtualHost…
Daniel Ashton
  • 1,388
  • 11
  • 23
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
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

Can't get Capistrano to call bundle and rake commands

I can't get Capistrano to run bundle commands and rake commands. I get debug logs like this: DEBUG [0f557e7e] /usr/bin/env: bundle DEBUG [0f557e7e] : No such file or directory I have RVM on all ma computers (dev and production) Here's my…
Pacane
  • 20,273
  • 18
  • 60
  • 97
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

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
0
votes
3 answers

Trying to deploy a Rails 4 app to WebFaction, using their documentation and getting an error locally

I am trying to deploy a Rails 4 app via github to Webfaction via Capistrano 2.15.5. Initially I installed Capistrano 3 and was getting errors, so I ended up installing Capistrano 2.15.5 and following webfaction's documentation here: I spoke with…
jaronoff
  • 121
  • 1
  • 7
0
votes
1 answer

Confirm that will_paginate has loaded

To solve my problem, which is discussed in Why do I get “undefined method 'paginate'” error in production? I'm running bundle exec rails runner -e production 'WillPaginate' on the server like suggested in this github…
crispychicken
  • 2,592
  • 2
  • 33
  • 50
0
votes
1 answer

bundle error in deploying rails using capistrano

When deploy my rails application with capistrano installing everything and gets rollback and showing following error failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-2.0.0-p247' -c 'cd /var/www/vhosts/admin/releases/20131012184713…
Prabhakaran
  • 3,900
  • 15
  • 46
  • 113