Update announcement.gemspec
This commit is contained in:
parent
9b81190220
commit
27e3a1408e
|
@ -42,20 +42,21 @@ if old_gemfile_text != new_gemfile_text
|
||||||
else
|
else
|
||||||
mode = 'production'
|
mode = 'production'
|
||||||
end
|
end
|
||||||
a = Thread.start do
|
|
||||||
Bundler.with_clean_env do
|
|
||||||
puts ENV['PWD']
|
|
||||||
puts mode
|
|
||||||
if Dir[ENV['PWD']+'/Gemfile.lock'].blank?
|
if Dir[ENV['PWD']+'/Gemfile.lock'].blank?
|
||||||
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n bundle update \r\n"
|
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n bundle update \r\n"
|
||||||
else
|
else
|
||||||
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update \r\n"
|
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update \r\n"
|
||||||
end
|
end
|
||||||
system("#{command} kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec unicorn_rails -c config/unicorn.rb -D -E development")
|
all_command = "#{command} kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec unicorn_rails -c config/unicorn.rb -D -E development"
|
||||||
|
a = Thread.start do
|
||||||
|
Bundler.with_clean_env do
|
||||||
|
puts ENV['PWD']
|
||||||
|
puts mode
|
||||||
|
system(all_command)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
a.priority = 2
|
a.priority = 2
|
||||||
sleep 1
|
sleep 2
|
||||||
a.run
|
a.run
|
||||||
Thread.kill(Thread.current)
|
Thread.kill(Thread.current)
|
||||||
puts '123'
|
puts '123'
|
||||||
|
|
Loading…
Reference in New Issue