From 1f5ee39c1c7d65eecb7b066ce8ffa622bd6244f6 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 17 Feb 2020 20:49:52 +0800 Subject: [PATCH] fix --- announcement.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 339df7e..7800f95 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -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'"