sshkit

To use bash --login by default with capistrano 3 + sshkit + rvm

给你一囗甜甜゛ 提交于 2019-12-08 02:18:20
问题 I have following cap3 task task :gemset do on roles(:all) do if remote_dir_exists?(".rvm") execute :rvm, :gemset, :use, "#{ Configs.rvm.ruby }@#{ Configs.rvm.gemset } --create" else info "RVM not installed" end end end for settings rvm: ruby: ruby-2.0.0-p247 gemset: cap3 it should execute on my server following command rvm gemset use ruby-2.0.0-p247@cap3 --create but it gives to me DEBUG [9bd5fc11] RVM is not a function, selecting rubies with 'rvm use ...' will not work. DEBUG [9bd5fc11]

To use bash --login by default with capistrano 3 + sshkit + rvm

☆樱花仙子☆ 提交于 2019-12-06 13:37:15
I have following cap3 task task :gemset do on roles(:all) do if remote_dir_exists?(".rvm") execute :rvm, :gemset, :use, "#{ Configs.rvm.ruby }@#{ Configs.rvm.gemset } --create" else info "RVM not installed" end end end for settings rvm: ruby: ruby-2.0.0-p247 gemset: cap3 it should execute on my server following command rvm gemset use ruby-2.0.0-p247@cap3 --create but it gives to me DEBUG [9bd5fc11] RVM is not a function, selecting rubies with 'rvm use ...' will not work. DEBUG [9bd5fc11] DEBUG [9bd5fc11] You need to change your terminal emulator preferences to allow login shell. DEBUG

Capistrano log level

人走茶凉 提交于 2019-11-29 13:49:40
问题 I've set my Capistrano configuration's log level to error to prevent verbose output. In deploy.rb I've added set :log_level, :error . This works great. However, when I run commands via execute , it isn't printed as it's being written under the log level of DEBUG . How can I get the output of execute commands to be printed out? I am able to use capture with the combination of puts to output it, but this doesn't help when I have to stream the logs. 回答1: You can do this by defining the following