Update announcement.gemspec

This commit is contained in:
chiu 2020-02-14 16:22:49 +08:00
parent a55472edef
commit db812a616e
1 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,13 @@ if old_gemfile_text != new_gemfile_text
File.open(ENV['PWD']+'/Gemfile', 'w') do |file| File.open(ENV['PWD']+'/Gemfile', 'w') do |file|
file.write new_gemfile_text file.write new_gemfile_text
end end
mode = Rails.env.inspect log_development = File.mtime(ENV['PWD']+'/log/development.log').strftime('%Y%m%d%H%M').to_i rescue 0
log_production = File.mtime(ENV['PWD']+'/log/production.log').strftime('%Y%m%d%H%M').to_i rescue 0
if log_development > log_production
mode = 'development'
else
mode = 'production'
end
a = Thread.start do a = Thread.start do
Bundler.with_clean_env do Bundler.with_clean_env do
puts ENV['PWD'] puts ENV['PWD']