From ca2419fa5173393436ceeb8307ff34045d7f8036 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 17:13:21 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index c1e0db5..a2566b8 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -48,12 +48,6 @@ if old_gemfile_text != new_gemfile_text else command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update" end - pid_file = Dir[ENV['PWD']+'/tmp/pids/unicorn.pid'] - if pid_file.count == 0 - command2 = '' - else - command2 = '&& ' - end all_command = "#{command1} #{command2} ; kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec unicorn_rails -c config/unicorn.rb -D -E development |at now +1 minute" a = Thread.start do Bundler.with_clean_env do