try
This commit is contained in:
parent
f68d3fd920
commit
a3d1cc3157
|
@ -70,7 +70,7 @@ if old_gemfile_text != new_gemfile_text
|
||||||
end
|
end
|
||||||
files = Dir[ENV['PWD']+'/Gemfile.lock']
|
files = Dir[ENV['PWD']+'/Gemfile.lock']
|
||||||
dir_name = ENV['PWD'].split('/')[-1]
|
dir_name = ENV['PWD'].split('/')[-1]
|
||||||
%x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill]
|
Bundler.with_clean_env{%x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill]}
|
||||||
if files.count ==0
|
if files.count ==0
|
||||||
command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && bundle update"
|
command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && bundle update"
|
||||||
else
|
else
|
||||||
|
@ -88,6 +88,7 @@ if old_gemfile_text != new_gemfile_text
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
all_command = "#{command1} && cd #{ENV['PWD']} && #{command2}&& #{command3}&& #{command4}&& 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']} && #{command2}&& #{command3}&& #{command4}&& kill -s TERM `cat tmp/pids/unicorn.pid`; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now"
|
||||||
|
puts all_command
|
||||||
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