Update announcement.gemspec
This commit is contained in:
parent
a55472edef
commit
db812a616e
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue