From 702f388ffe948fd359fb0c2f51c44d84ae96ad5e Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 19 Feb 2020 17:45:55 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index db70b58..9f9a532 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -81,16 +81,6 @@ 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 Bundler.with_clean_env{system("cd #{env_pwd} && screen -d -m -S auto_reopen_#{dir_name} watch -n 30 bundle exec --keep-file-descriptors #{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'" - if filedata.include? exist_str - puts "patchfile exist" - else - file = env_pwd+"/built_in_extensions.rb" - open(file, 'a') { |f| - f.puts exist_str - } - end all_command = "#{command1} && cd #{env_pwd} && #{command2} #{command3} #{command4} && kill -s TERM `cat tmp/pids/unicorn.pid` && unset UNICORN_FD && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now" a = Thread.start do Bundler.with_clean_env do