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

Reindex Sunspot Solr in Capistrano

I'm following this snippet for adding Sunspot Solr in Capistrano https://gist.github.com/doitian/1795439 and it works, but when I run cap solr:reindex it shows a question (as expected) asking if I want to drop all indexes, so I answer with "yes" but…
pablomarti
  • 2,087
  • 2
  • 22
  • 35
3
votes
1 answer

How can I restore my Rails 5 binstubs?

I'm working in a Rails 5 app on macOS Sierra and everything was going well until I was ready for production to a Digital Ocean VPS. I followed one of the most famous Deploy Rails app tutorial using Capistrano, I after some bugs finally my app came…
alexventuraio
  • 8,126
  • 2
  • 30
  • 35
3
votes
4 answers

'No Rakefile found' error from the 'cap install' command

I'm trying to convert an old project from cap2 to cap3. After deleting the old Capfile, running cap install gives me: $ cap install (Backtrace restricted to imported tasks) cap aborted! No Rakefile found (looking for: capfile, Capfile, capfile.rb,…
Tim Fountain
  • 33,093
  • 5
  • 41
  • 69
3
votes
2 answers

Error running cron job `require': cannot load such file -- bundler/setup (LoadError)

I have deployed application using Capistrano 3. I keep on getting following error. `require': cannot load such file -- bundler/setup (LoadError) Here is the cron tab…
Amit Patel
  • 15,609
  • 18
  • 68
  • 106
3
votes
2 answers

Capistrano / Rails 3.2.14 / Sprockets - not finalizing deploy in production

I am migrating a Rails application I created a few years ago and did not deploy it for a long time to a new server. At the time, I used capistrano with no problems and now, when I run cap deploy I get the following step failed: * executing "ls -1…
3
votes
0 answers

~/.rvm/bin/rvm is not a function but rvm is

ubuntu@server1:~$ type ~/.rvm/bin/rvm | head -1 /home/ubuntu/.rvm/bin/rvm is /home/ubuntu/.rvm/bin/rvm ubuntu@server1:~$ which rvm /home/ubuntu/.rvm/bin/rvm ubuntu@server1:~$ type rvm | head -1 rvm is a function ubuntu@server1:~$ type `which rvm`…
Rystraum
  • 1,985
  • 1
  • 20
  • 32
3
votes
2 answers

Why is "rails runner -e production" not working?

To solve my problem, which is discussed in "will_paginate error in production undefined method 'paginate'", I tried running: script/rails runner -e production and: bundle exec script/rails runner -e production on the server like suggested in this…
crispychicken
  • 2,592
  • 2
  • 33
  • 50
3
votes
2 answers

Multiple delayed_jobs roles with Capistrano?

I have a question that I am not finding much useful information for. I'm wondering if this is possible and, if so, how to best implement it. We are building an app in Rails which has heavy data-processing in the background via DelayedJob (…it is…
n8gard
  • 1,870
  • 8
  • 26
  • 41
3
votes
2 answers

Why am I getting a Psych error when trying to deploy with capistrano?

I am currently setting up capistrano in my Rails 3.2.13 app. I am getting the below error/details (including "control characters are not allowed at line 1 column 1"). I have done some searching for this but do not see anything related to me. I am…
n8gard
  • 1,870
  • 8
  • 26
  • 41
2
votes
1 answer

Deploying with capistrano and rvm-capistrano

I am using Capistrano to bootstrap an empty Ubuntu VM. I have a base recipe that installs base requirements: recipes/base.rb def set_default(name, *args, &block) set(name, *args, &block) unless exists?(name) end namespace :deploy do desc…
Christian Joudrey
  • 3,441
  • 25
  • 25
2
votes
2 answers

bundler: command not found. Cannot start puma or even open rails console

I am using capistrano to deploy a rails 5.2 application. Everything goes on well except the fact that puma doesn't start. Result of tail -f /var/www/tuma/shared/log/puma_error.log when I execute sudo systemctl start puma_tuma_production bundler:…
noooooob
  • 211
  • 2
  • 7
2
votes
1 answer

SSHKit::Runner::ExecuteError:Exception while executing as root@co:Authentication failed for user root@ from Jenkins Job's shell script

I'm trying to run a cap deployment command from Jenkins Job. It is continuously throwing the following error. I have added the ssh key in deployment server as well. I'm able to deploy successfully form the server where Jenkins is configured. But…
2
votes
1 answer

Capistrano rails Skipping task `deploy:updating' because it was previously invoked

I am on rails using rvm, I get following error when deplying using capistrano: Skipping task `deploy:updating'. Capistrano tasks may only be invoked once. Since task `deploy:updating' was previously invoked, invoke("deploy:updating") at…
2
votes
1 answer

Why is capistrano multiconfig not working?

I had a working capistrano setup for my app but I installed the multiconfig gem so that I could deploy to two different servers using capistrano. Running cap primary:production deploy works perfectly, but when I run rails s I get this error: rails…
1
2
3
9 10