Update announcement.gemspec

This commit is contained in:
chiu 2020-02-14 21:42:15 +08:00
parent d038fb8b10
commit 198573eb10
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ if old_gemfile_text != new_gemfile_text
else else
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']} && screen -d -m -S auto_reopen watch -n 5 bundle exec unicorn_rails -c config/unicorn.rb -D -E #{mode} && kill -s TERM `cat tmp/pids/unicorn.pid`"
system("cd #{ENV['PWD']} && 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']