Update announcement.gemspec
This commit is contained in:
parent
5762e8b34a
commit
d038fb8b10
|
@ -49,6 +49,7 @@ 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("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
|
||||
Bundler.with_clean_env do
|
||||
puts ENV['PWD']
|
||||
|
@ -59,8 +60,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
|
||||
Thread.exit
|
||||
end
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
|
|
Loading…
Reference in New Issue