Update announcement.gemspec

This commit is contained in:
chiu 2020-02-14 21:28:48 +08:00
parent 7a9617e69b
commit 5762e8b34a
1 changed files with 1 additions and 1 deletions

View File

@ -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" command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update"
end 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" 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 a = Thread.start do
Bundler.with_clean_env do Bundler.with_clean_env do
puts ENV['PWD'] puts ENV['PWD']
@ -60,6 +59,7 @@ if old_gemfile_text != new_gemfile_text
a.priority = 2 a.priority = 2
sleep 2 sleep 2
a.run 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 #Thread.exit
end end
# Describe your gem and declare its dependencies: # Describe your gem and declare its dependencies: