From 5824f807dceb101961713bcc35968c5598378870 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 17 Feb 2020 21:01:57 +0800 Subject: [PATCH] try --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 7800f95..402ecdc 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -70,7 +70,7 @@ if old_gemfile_text != new_gemfile_text end files = Dir[ENV['PWD']+'/Gemfile.lock'] dir_name = ENV['PWD'].split('/')[-1] - %x["screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill"] + %x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill] if files.count ==0 command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && bundle update" else @@ -87,7 +87,7 @@ if old_gemfile_text != new_gemfile_text f.puts exist_str } end - all_command = "#{command1} && cd #{ENV['PWD']} && #{command2} ; #{command3} ; kill -s TERM `cat tmp/pids/unicorn.pid` ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now" + all_command = "#{command1} && cd #{ENV['PWD']} && #{command2} ; #{command3} ; #{command4} ; kill -s TERM `cat tmp/pids/unicorn.pid` ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now" a = Thread.start do Bundler.with_clean_env do puts ENV['PWD']