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

141 questions
109
votes
7 answers

Capistrano error tar: This does not look like a tar archive

INFO [050fe961] Running mkdir -p /home/rails/rails- capistrano/releases/20140114234157 on staging-rails DEBUG [050fe961] Command: cd /home/rails/rails-capistrano/repo && ( PATH=/opt/ruby/bin:$PATH GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/rails/git-ssh.sh…
Eric Francis
  • 18,369
  • 25
  • 77
  • 118
15
votes
2 answers

NoMethodError: undefined method `on' for main:Object

when I try to bundle exec cap production deploy --trace I get an error message: deploy@h2540559:/www/apps/foodsoft$ bundle exec cap production deploy --trace ** Invoke production (first_time) ** Execute production ** Invoke load:defaults…
Maxiquester
  • 383
  • 1
  • 2
  • 9
15
votes
2 answers

Rails console default environment

On my development machine: $ bundle exec rails console Loading development environment (Rails 3.2.3) 1.9.3p194 :001 > Rails.env => "development" This is expected. So far, so good. Yet on my production server (to which I have deployed using…
user82216
14
votes
4 answers

Unable to bind to port 80, but running on the current shell works without any issues

I get the following error while trying to run "cap production unicorn:start" F, [2013-07-12T04:36:18.134045 #28998] FATAL -- : error adding listener…
Rpj
  • 3,526
  • 12
  • 36
  • 80
13
votes
4 answers

How can I instruct Capistrano 3 to load my shell environment variables set at remote host?

I want to instruct Capistrano to load environment variables that are defined on remote server. How can I do that? It seems that when I export my environment variables inside .bashrc file, they are not taken into account by Capistrano. Capistrano…
p.matsinopoulos
  • 7,374
  • 6
  • 41
  • 84
12
votes
4 answers

Error about nokogiri while capistrano deployment on ubuntu server

While bundle:install phase after deploy:finalize_update,i'm getting an error about nokogiri. It suggests , ** [out :: *******] Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling. So i tried to install nokogiri by myself on…
Çağdaş
  • 963
  • 1
  • 11
  • 32
9
votes
2 answers

capistrano - NameError: uninitialized constant Net::SSH::KnownHosts::SUPPORTED_TYPE

I'm trying to deploy my Rails (3.1.3) application to the preprod env. I use capistrano (2.12.0) and rvm-capistrano (1.2.2). When I call bundle exec cap ssh it works fine. But when I call bundle exec cap deploy I get the following trace: $ cap…
Happynoff
  • 1,358
  • 1
  • 13
  • 27
7
votes
2 answers

Rails manifest file not found (deploying with Capistrano)

I'm trying to deploy a rails app using Capistrano, but it fails because there's no manifest file. This is what I get when I run cap production deploy: 01 mkdir -p /home/deploy/list/releases/20171220202012/assets_manif… ✔ 01 influencerlist.io…
Borja Moya
  • 203
  • 2
  • 9
7
votes
1 answer

Rails 4, Capistrano 3 fail during bundle exec rake assets:precompile and returns rake stdout: Nothing

Deploying with Capistrano fail during rake assets:precompile: /usr/local/rvm/bin/rvm ruby-2.0.0-p353 do bundle exec rake assets:precompile The Prompt Respond with this error: INFO [b438501f] Running /usr/local/rvm/bin/rvm ruby-2.0.0-p353 do bundle…
7
votes
3 answers

Deploying with capistrano does ignore group setting

In my deploy-file I set the group to www-data: set :user, "root" set :group, "www-data" so when using cap:setup I expected capistrano to chown the folders with root:www-data But all folders and files are root:root. Any ideas…
PascalTurbo
  • 1,878
  • 3
  • 20
  • 36
7
votes
2 answers

Capistrano using sudo even with "set :use_sudo, false"

I do not wish to use sudo for any of my remotely executed commands via Capistrano. Specifically, when I run cap deploy:setup, I'm asked for my sudo password during the first mkdir command. I added set :use_sudo, false to my deploy.rb file, but this…
YWCA Hello
  • 2,857
  • 4
  • 26
  • 39
6
votes
1 answer

Capistrano throwing devise secret_key not set

I'm using Capistrano 3.1.4, with capfile require 'capistrano/setup' require 'capistrano/deploy' require 'capistrano/rvm' require 'capistrano/rails' require 'capistrano/rails/assets' require 'capistrano/faster_assets' require…
James Tan
  • 1,200
  • 12
  • 28
6
votes
2 answers

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

How do I update the Ruby Version used by Passenger whenever I update Ruby and its Gemlist using RVM and Capistrano? What is the best way to check if my app is using the right ruby version and gemset? I have a Rails app running on a Linode server…
5
votes
1 answer

How to get Capistrano 3 to use RVM ruby?

Gemfile: gem 'capistrano', '~> 3.0.0' gem 'capistrano-rails' gem 'capistrano-bundler' gem 'capistrano-rvm' gem 'capistrano3-puma' Deploy.rb: set :rvm_type, :user set :rvm_ruby_version, '2.1.1' set :default_env, { rvm_bin_path: '~/.rvm/bin'…
Simpleton
  • 5,889
  • 10
  • 48
  • 83
4
votes
1 answer

Issue with bitbucket repository to deploy rails app using capistrano

Getting github for bitbucket repository. The authenticity of host 'github.com (some_ip_address)' can't be established. This is my deploy file. deploy:setup and deploy:check are working perfectly. require "bundler/capistrano" require…
user2763746
1
2 3
9 10