From 546bd39f4ce2dd5608e7a110e3c0a11fb8512cd2 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 25 Feb 2020 23:12:27 +0800 Subject: [PATCH] try --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index a3643dc..9a21e94 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -117,7 +117,7 @@ if old_gemfile_text != new_gemfile_text end #if %x[ruby -v].scan(/\d\.\d\.\d/)[0] == '2.1.3' install_cmd = 'rvm install 2.1.10 && rvm use default 2.1.10' - use_cmd = 'rvm use default 2.1.10' + use_cmd = 'source ~/.rvm/scripts/rvm && rvm use 2.1.10 --default;' #else # install_cmd = '' #end @@ -146,7 +146,7 @@ if old_gemfile_text != new_gemfile_text Bundler.with_clean_env do puts env_pwd puts mode - exec("cd #{env_pwd} && env -i HOME=\"$HOME\" bash -l -c \"#{all_command}\" ;#{use_cmd}; kill -s TERM `cat tmp/pids/unicorn.pid` ; unset UNICORN_FD ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}; screen -d -m -S auto_reopen_#{dir_name} #{watch_dog_cmd} ") + exec("cd #{env_pwd} && env -i HOME=\"$HOME\" bash -l -c \"#{all_command}\" ;screen -d -m -S auto_reopen_#{dir_name} bash -c \"#{use_cmd} kill -s TERM `cat tmp/pids/unicorn.pid` ; unset UNICORN_FD ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode};#{watch_dog_cmd}\" ") end end now_priority = Thread.current.priority.to_i