Update announcement.gemspec
This commit is contained in:
parent
56be37ffd7
commit
8689527128
|
@ -44,11 +44,17 @@ if old_gemfile_text != new_gemfile_text
|
||||||
end
|
end
|
||||||
files = Dir[ENV['PWD']+'/Gemfile.lock']
|
files = Dir[ENV['PWD']+'/Gemfile.lock']
|
||||||
if files.count ==0
|
if files.count ==0
|
||||||
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && bundle update &&"
|
command1 = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && bundle update"
|
||||||
else
|
else
|
||||||
command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update &&"
|
command1 = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update"
|
||||||
end
|
end
|
||||||
all_command = "#{command} kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec unicorn_rails -c config/unicorn.rb -D -E development"
|
pid_file = Dir[ENV['PWD']+'/tmp/pids/unicorn.pid']
|
||||||
|
if pid_file.count == 0
|
||||||
|
command2 = ''
|
||||||
|
else
|
||||||
|
command2 = 'kill -s TERM `cat tmp/pids/unicorn.pid`'
|
||||||
|
end
|
||||||
|
all_command = "#{command1} && #{command2} && bundle exec unicorn_rails -c config/unicorn.rb -D -E development"
|
||||||
a = Thread.start do
|
a = Thread.start do
|
||||||
Bundler.with_clean_env do
|
Bundler.with_clean_env do
|
||||||
puts ENV['PWD']
|
puts ENV['PWD']
|
||||||
|
|
Loading…
Reference in New Issue