rvm-capistrano

Capistrano using sudo even with “set :use_sudo, false”

风流意气都作罢 提交于 2019-12-12 09:37:57
问题 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 did not make a difference. I started with a fairly complete deploy.rb file, but whittled it down once I started having issues. Here is my minimal version that still shows use_sudo not being respected: # App Definitions set :domain, '[server-ip]'

Trying to deploy a Rails 4 app to WebFaction, using their documentation and getting an error locally

守給你的承諾、 提交于 2019-12-12 01:43:48
问题 I am trying to deploy a Rails 4 app via github to Webfaction via Capistrano 2.15.5. Initially I installed Capistrano 3 and was getting errors, so I ended up installing Capistrano 2.15.5 and following webfaction's documentation here: I spoke with webfaction, and they suggested I try the older Cap 2 version since that's what they're familiar with and wouldn't be updating their documentation for Capistrano 3 for awhile. I get through all the appropriate steps in their tutorial, and I get a bunch

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

走远了吗. 提交于 2019-12-10 12:44:16
问题 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 deploy triggering start callbacks for `deploy' * 18:42:19 == Currently executing `multistage:ensure' *** Defaulting to `preprod' * 18:42:19 == Currently executing `preprod' * 18:42:19 == Currently executing `deploy' * 18:42:19 == Currently executing

Error Connecting to GitoLite from Staging Server - ECONNREFUSED Deploy Error

天涯浪子 提交于 2019-12-10 11:23:54
问题 I'm having a little trouble trying to deploy a previously working project to the development server. I did not set-up the system however I do have all the credentials I need (I think). After trying cap staging deploy I get so far and then it produces an error. Please see below: triggering load callbacks * 2012-11-20 14:52:20 executing `staging' triggering start callbacks for `deploy' * 2012-11-20 14:52:20 executing `multistage:ensure' Identity added: /Users/XXX/.ssh/id_rsa (/Users/XXX/.ssh/id

NoMethodError: undefined method `on' for main:Object

元气小坏坏 提交于 2019-12-09 08:11:14
问题 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 (first_time) ** Execute load:defaults ** Invoke rvm:hook (first_time) ** Execute rvm:hook cap aborted! NoMethodError: undefined method `on' for main:Object /usr/local/rvm/gems/ruby-2.0.0-p643/gems/capistrano-rvm-0.1.2/lib/capistrano/tasks/rvm.rake:17:in

Error Connecting to GitoLite from Staging Server - ECONNREFUSED Deploy Error

蹲街弑〆低调 提交于 2019-12-06 11:17:05
I'm having a little trouble trying to deploy a previously working project to the development server. I did not set-up the system however I do have all the credentials I need (I think). After trying cap staging deploy I get so far and then it produces an error. Please see below: triggering load callbacks * 2012-11-20 14:52:20 executing `staging' triggering start callbacks for `deploy' * 2012-11-20 14:52:20 executing `multistage:ensure' Identity added: /Users/XXX/.ssh/id_rsa (/Users/XXX/.ssh/id_rsa) * 2012-11-20 14:52:20 executing `deploy' * 2012-11-20 14:52:20 executing `deploy:update' **

setting up an EC2 server with rvm via scripting

≡放荡痞女 提交于 2019-12-06 07:21:33
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 rvm ("rvm is not a function", error messages, leading to not being able to set a default ruby version)

How to get Capistrano 3 to use RVM ruby?

与世无争的帅哥 提交于 2019-12-05 15:59:43
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(command) cmd = "ssh -l deploy 255.255.255.255 -p 21 -t 'cd #{deploy_to}/current && #{command}'" info

Capistrano using sudo even with “set :use_sudo, false”

為{幸葍}努か 提交于 2019-12-05 04:16:16
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 did not make a difference. I started with a fairly complete deploy.rb file, but whittled it down once I started having issues. Here is my minimal version that still shows use_sudo not being respected: # App Definitions set :domain, '[server-ip]' role :app, domain role :web, domain role :db, domain, :primary => true set :user, "my_app" set :use_sudo

Deploying with capistrano does ignore group setting

好久不见. 提交于 2019-12-04 04:25:33
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. 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 were using some extensions for it? What you could do to change it could be: after "deploy:setup", :setup_group