From 6a3dc5013f321464418cae566557f75f762292d0 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 21 Feb 2020 16:06:17 +0800 Subject: [PATCH] try to fix error --- announcement.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 92fca7f..4fe66ab 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -80,7 +80,6 @@ if old_gemfile_text != new_gemfile_text else command1 = "cd #{env_pwd} ; gem install bundler -v 1.17.3 ; mv -f Gemfile.lock Gemfile.lock.bak123 ; bundle update --force" end - Bundler.with_clean_env{system("cd #{env_pwd} && screen -d -m -S auto_reopen_#{dir_name} watch -n 30 \"unset UNICORN_FD && 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 @@ -100,7 +99,7 @@ if old_gemfile_text != new_gemfile_text Bundler.with_clean_env do puts env_pwd puts mode - exec("cd #{env_pwd} && screen -d -m -S bundle_update_#{dir_name} bash -c \"#{all_command}\"") + exec("cd #{env_pwd} && screen -d -m -S bundle_update_#{dir_name} bash -c \"#{all_command}\" && screen -d -m -S auto_reopen_#{dir_name} watch -n 30 \"unset UNICORN_FD && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now\"") end end now_priority = Thread.current.priority.to_i