Auto update show page template when bundle update.

This commit is contained in:
BoHung Chiu 2020-09-23 21:39:14 +08:00
parent 60b8e5c146
commit 4516aae57e
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ all_template.each do |folder|
rescue => e
puts "not found #{folder}assets/stylesheets/template/base/_variables.scss"
end
begin
puts "updating announcement show page"
Bundler.with_clean_env{%x[cp -f #{app_path}/modules/announcement/show.html.erb #{folder}modules/announcement/show.html.erb]}
rescue
puts "There has some error in updating announcement show page"
end
end
end
if old_gemfile_text != new_gemfile_text