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

rmv using 1.9.1 when default 1.9.3

I just deploy my app and after a little fight everything is running. But when I login to the console the prompt is a version it is not used by the app. I'm using rvm. when I run rvm list I get: rvm rubies ruby-1.8.7-p374 [ i686 ] …
Marc Pursals
  • 762
  • 1
  • 8
  • 23
0
votes
1 answer

Capistrano deploy fails with rvm-shell saying rvm not being found

Recently I inherited a Rails application that has been deployed to production many times. I have previously deployed to a staging environment. Now, it fails to deploy to either. However, another Rails application that deploys to the same servers…
James
  • 559
  • 4
  • 16
0
votes
1 answer

How to add pre-requisites for a certain capistrano task

I would like to add cap deploy:setup as a pre-requisite for cap deploy task. How should I do this.
Rpj
  • 5,348
  • 16
  • 62
  • 122
0
votes
1 answer

How to deploy a private gem using capistrano

We have a gem which is specific to our project and is also shared among multiple projects. When we try to install our Gemfile using bundle:install command via capistrano, it fails mentioning that it is unable to find the sources for foo-1.0.0.gem **…
Rpj
  • 5,348
  • 16
  • 62
  • 122
0
votes
1 answer

Capistrano Deploying Error with .rvmrc file

I have ruby-2.0.0-p0 in my local machine. When I was deploying my rails application, I got lot of error and I had fix it and it was running. But again, after 1 days, I try to running same application, I got this message You are using '.rvmrc', it…
Amrit Dhungana
  • 4,371
  • 5
  • 31
  • 36
0
votes
2 answers

Can't Deploy App Using RVM Capistrano

First, I have development app rails on ubuntu using rvm 1.15.8 (stable) by wayne, and I will deploy to my vps. Here's history of build rails app on my vps : Install rvm using user "user" on my vps, I tried from this, and here's is rvm…
0
votes
2 answers

Switching ruby version to run a command on server

I have a Ruby application (non-Rails) which I deploy with capistrano. I can ssh into my server, cd into the /current directory and start it with the command ruby tweet_tracker.rb start However, if I cd up a level and run ruby…
David Tuite
  • 22,258
  • 25
  • 106
  • 176
0
votes
1 answer

Capistrano VPS deploy error

I am using Capistrano to deploy to a VPS. In my deploy.rb: require "bundler/capistrano" server "xxx.xxx.xx.xxx", :web, :app, :db, primary: true set :application, "riffbox" set :user, "root" set :deploy_to, "/home/#{user}/apps/#{application}" set…
user1883793
  • 4,011
  • 11
  • 36
  • 65
0
votes
1 answer

Capistrano deployment can't find certain gems during deployment (Probably RVM related)

I've been trying to deploy to a VPS using Capistrano, and the following command is throwing me a lot of errors: * executing "cd -- /home/work/for_linode/releases/20130317174830 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp…
jlstr
  • 2,986
  • 6
  • 43
  • 60
0
votes
2 answers

Is it possible to set the Capistrano rvm_type variable depending on the server?

I have 2 servers I need to deploy to, one has a RVM installed in user mode the other in system mode. I can I write a deployment script for both? In other words is there a way to set rvm_type to:user for one server and to :system for the other…
Matteo Melani
  • 2,706
  • 2
  • 24
  • 30
0
votes
1 answer

Can't convert 'Hash' into 'String'

I'm trying to deploy via capistrano and for some reason, I'm getting: /Users/mysite/.rvm/gems/ruby-1.9.2-p318@fbadapter/gems/json-1.4.6/lib/json/common.rb:146:in `initialize': can't convert Hash into String (TypeError) from…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
0
votes
1 answer

Rails app fails to load as soon as i installed capistrano

i am trying to deploy my rails application for the first time on vexxhost. i am using github as my Source code management and capistrano. here is my deploy file require 'bundler/capistrano' require 'capistrano' require 'bundler' require…
0
votes
1 answer

Capistrano error on rake assets:precompile:all but still working (using RVM)

I've made a new Rails 3.2 application. When i deploy it with Capistrano, I get an error when compiling assets. But the assets ARE compiled, and the application deployed as it should. On the server I've installed RVM systemwide and then…
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
1 answer

Capistrano TOUCH_ASSETS error

Recently moved project to another server. Capistrano stoped working. How to find what is wrong? ** sftp upload # -> /home/xxx/production/TOUCH_ASSETS [yyy.xxx.lt] /home/xxx/production/TOUCH_ASSETS [yyy.xxx.lt]…
Jonas
  • 4,683
  • 4
  • 45
  • 81
0
votes
2 answers

How to create an RVM environment on a server through net-ssh?

I have a script which is installing Ruby/RVM (and more) on my server to get an environment ready to deploy a Rails project. This script is in ruby and use the net-ssh lib to do the job. After having installed RVM, Ruby, I would like to create the…
Vincent Peres
  • 1,003
  • 1
  • 13
  • 28
1 2 3
9
10