From ac15e298a5ba126049b46f3629915b869f8bb2e5 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 17:12:21 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 0dd5494..c1e0db5 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -52,9 +52,9 @@ if old_gemfile_text != new_gemfile_text if pid_file.count == 0 command2 = '' else - command2 = '&& kill -s TERM `cat tmp/pids/unicorn.pid`' + command2 = '&& ' end - all_command = "#{command1} #{command2} && bundle exec unicorn_rails -c config/unicorn.rb -D -E development" + 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 puts ENV['PWD']