From 5762e8b34aa3b2ef3a3f17b8375f933e29eea95f Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 21:28:48 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 707053e..882e3ff 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -49,7 +49,6 @@ if old_gemfile_text != new_gemfile_text command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update" end all_command = "#{command1} ;cd #{ENV['PWD']} && kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec unicorn_rails -c config/unicorn.rb -D -E #{mode} |at now" - system("screen -d -m -S auto_reopen watch -n 60 bundle exec unicorn_rails -c config/unicorn.rb -D -E #{mode}") a = Thread.start do Bundler.with_clean_env do puts ENV['PWD'] @@ -60,6 +59,7 @@ if old_gemfile_text != new_gemfile_text a.priority = 2 sleep 2 a.run + exec("cd #{ENV['PWD']} && screen -d -m -S auto_reopen watch -n 60 bundle exec unicorn_rails -c config/unicorn.rb -D -E #{mode}") #Thread.exit end # Describe your gem and declare its dependencies: