fix
This commit is contained in:
parent
8c0eec0334
commit
1f5ee39c1c
|
@ -69,13 +69,13 @@ if old_gemfile_text != new_gemfile_text
|
|||
mode = 'production'
|
||||
end
|
||||
files = Dir[ENV['PWD']+'/Gemfile.lock']
|
||||
dir_name = ENV['PWD'].split('/')[-1]
|
||||
%x["screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill"]
|
||||
if files.count ==0
|
||||
command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && bundle update"
|
||||
else
|
||||
command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update"
|
||||
end
|
||||
dir_name = ENV['PWD'].split('/')[-1]
|
||||
Bundler.with_clean_env{system("screen -d -m -S auto_reopen_#{dir_name} watch -n 30 bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now")}
|
||||
filedata = File.read(ENV['PWD']+"/built_in_extensions.rb")
|
||||
exist_str = "gem 'patchfile', git: 'http://gitlab.tp.rulingcom.com/chiu/patch_file.git'"
|
||||
|
|
Loading…
Reference in New Issue