rvm-capistrano

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

左心房为你撑大大i 提交于 2021-02-07 03:08:46
问题 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 (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

时光怂恿深爱的人放手 提交于 2021-02-07 03:06:06
问题 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 (Ubuntu), with NGinx and Passenger. Before it was running without any problem. Previously my app was running Ruby on Rails 3.2.16 with the Ruby 1.9.3-p194 I use RVM to manage ruby versions both locally and on the server. After I installed Ruby-2.1.2

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

假装没事ソ 提交于 2020-02-24 05:27:32
问题 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 list PATH=/home/deploy/magnificent/shared/bundle/ruby/2.2.0/bin:/usr/local/rvm/gems/ruby-2.2.2/bin:/usr/local/rvm/gems/ruby-2.2.2@global/bin:/usr/local/rvm/rubies/ruby-2.2.2/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games * * * * * /bin/bash -l -c 'cd /home/deploy

How to get Capistrano 3 to use RVM ruby?

a 夏天 提交于 2020-01-23 08:18:03
问题 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' } Production.rb namespace :rails do desc "Open the rails console on primary app server" task :console do on roles(:app), primary: true do execute_interactively "#{current_path}/script/rails console RAILS_ENV=production" end end def execute_interactively

How to get Capistrano 3 to use RVM ruby?

允我心安 提交于 2020-01-23 08:17:25
问题 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' } Production.rb namespace :rails do desc "Open the rails console on primary app server" task :console do on roles(:app), primary: true do execute_interactively "#{current_path}/script/rails console RAILS_ENV=production" end end def execute_interactively

setting up an EC2 server with rvm via scripting

爷,独闯天下 提交于 2020-01-02 18:07:03
问题 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) Using net/ssh I have to simulate a pseudo tty to be able to sudo some commands and up to now, I could not figure out, how to tell a success full command completion from a not success full one. after installing rvm, I've stumbled over problems using

Deploying with capistrano does ignore group setting

倖福魔咒の 提交于 2020-01-01 09:17:29
问题 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 where this problem could come from? Information: I'm Using system-wide-rvm. 回答1: as for my understanding you should do it manually, what setup does is to use the user to login, not to set the rights to directory. I have found no group setting for capistrano, maybe you

capistrano 3 + rvm1-capistrano3 rails 4.1 secrets.yml environmental variables issue

徘徊边缘 提交于 2019-12-25 05:13:36
问题 I have been deploying rails 4.1 application with capistrano 3. it has been working fine. but when i tried to do rake tasks (uncommenting require 'capistrano/rails/assets'). i get this error cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host xxx.xxx.xxx.xxx: rake exit status: 1 rake stdout: Nothing written rake stderr: config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly: * development - set it to false * test - set it to

Why is “rails runner -e production” not working?

孤人 提交于 2019-12-23 20:23:38
问题 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 github issue: https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158 But I get the following error: bundler: command not found: script/rails Install missing gem executables with `bundle install` Bundle install doesn't help. Any

Error about nokogiri while capistrano deployment on ubuntu server

三世轮回 提交于 2019-12-20 09:49:52
问题 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 server.But it gives following error, Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/deployer/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb Extracting libxml2