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

RVM-capistrano gem, cannot find ruby-1.9.3-p0

I installed ruby-1.9.3-p286 on my server with RVM, and confirmed it with ruby -v in the terminal. However, following the instructions from RVM-Capistrano gem integration, set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") require…
Jonathan Lin
  • 19,922
  • 7
  • 69
  • 65
2
votes
1 answer

error while deploy using capistrano

I got this error: connection failed for: your slave db-server here (SocketError: getaddrinfo: Name or service not known), your primary db-server here (SocketError: getaddrinfo: Name or service not known), **********.***.** (Errno::ECONNREFUSED: …
2
votes
1 answer

setting up an EC2 server with rvm via scripting

I'm looking for a way to install rvm, install a specific ruby version (using rvm) and set this installed ruby version as default. Before I can install rvm I have to install gcc and some other very basic software packages. What I've tried so far: 1)…
Torsten Robitzki
  • 3,041
  • 1
  • 21
  • 35
2
votes
1 answer

uninitialized constant Capistrano (NameError)

rvm 1.14.5, rvm-capistrano (1.2.2) and capistrano (2.12.0) My Gemfile is : group :development, :test do gem 'rvm-capistrano' gem 'capistrano' end When I try to start passenger, I keep seeing this error : [ pid=4691 thr=76294140…
Ved
  • 3,380
  • 6
  • 40
  • 51
1
vote
0 answers

Cap deploy failing on precompile assets but cap deploy:precompile:assets works

I removed and then re-added a few files to github so that the gitignore would work, and then uploaded these files through capistrano to server. Then started having some deploy trouble failing on precompile:assets. I was able to find the issue, fix…
madav
  • 2,918
  • 1
  • 13
  • 17
1
vote
3 answers

cap deploy - RVM not found

I get this log: (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as ubuntu@13.58.220.78: rvm exit status: 127 rvm stdout: bash: /home/ubuntu/.rvm/bin/rvm: No such file or directory rvm…
YogevAbr
  • 289
  • 3
  • 18
1
vote
2 answers

(Rails app deployment) capistrano bundles with invalid ruby version

I have Digital Ocean ubuntu droplet, I have installed RVM and set ruby version to 2.1.1 On server: > env RUBY_VERSION=ruby-2.1.1 ruby -v in my project: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] I've tried to deploy app with…
Rafonix
  • 159
  • 1
  • 12
1
vote
2 answers

Could not find rake-11.3.0 on deployment (Capistrano Nginx Passenger)

Recently updated an old web app to Rails 4.2.7.1 and Ruby 2.3.1 (It was working with Rails 3 and Ruby 1.9). App running on an nginx-pasenger server on production with rvm. Updated RVM and ruby in production, and set new ruby version…
1
vote
2 answers

Rails app with passenger and capistrano picking wrong gemset

I am trying to deploy rails app with Capistrano. App is deployed, bundle install is run in ~/.rvm/bin/rvm default do bundle install --path /home/pro/www/shared/bundle --without development test --deployment --quiet But when I run the app, its…
1
vote
1 answer

ruby version on remote server is not changed

This is about configuring remote Ubuntu server through SSH utility for hosting Ruby on Rails application. From beginning I've installed all the environments using 'root' user, after installing tools I created other user - 'deploy' for Capistrano…
1
vote
1 answer

Rails deployment Capistrano - capistrano/cli (LoadError)

I followed this tutorial. https://gorails.com/deploy/ubuntu/14.04#capistrano Now i am stuck at this I ran this command after set Adding The Nginx Host cap production deploy and ran into this, now no idea what to…
1
vote
3 answers

SSHKit::Runner::ExecuteError: Exception while executing as deploy@xxxxx

I am trying to deploy my rails applications to AWS using NGINX and Capistrano. running the deploy command: $ cap production deploy [41abe7d2] Running ~/.rvm/bin/rvm version as deploy@172.31.20.41 DEBUG [41abe7d2] Command: ~/.rvm/bin/rvm…
1
vote
0 answers

cap stopped working missing bin file

capistrano was working fine, I don't know what I changed, but now I get this: (cap3, rails4, using capistrano-rvm) $ cap production deploy --trace ** Invoke production (first_time) ** Execute production ** Invoke load:defaults (first_time) **…
Joelio
  • 4,621
  • 6
  • 44
  • 80
1
vote
1 answer

task in Capistrano 3 cannot find RVM

I have been using Capistrano 3 to deploy a PHP app for several months and it works great. Recently, we decided to start using Sass for stylesheets and I am now trying to deploy these changes. I am trying to write a task that runs after the rest of…
johndavid400
  • 1,552
  • 13
  • 15
1
vote
0 answers

Capistrano multi-server deployment with different parameters

I would like to deploy a ruby script, bin/app.rb to multiple servers zone1.myapp.com, zone2.myapp.com & zone3.myapp.com using Capistrano v3. Post deployment, it will need to run as a daemon with a param specific to that zone, meaning ... zone1…
Som Poddar
  • 1,428
  • 1
  • 15
  • 22