This commit is contained in:
BoHung Chiu 2021-07-13 19:37:00 +08:00
parent 0807c4c3f5
commit c559f3bc8d
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ require "announcement/version"
require 'json' require 'json'
bundle_update_flag = ARGV[0]=='update' || ARGV[0]=='install' bundle_update_flag = ARGV[0]=='update' || ARGV[0]=='install'
if bundle_update_flag if bundle_update_flag
if File.exist?("#{env_pwd}/app/models/google.rb")
system("rm -f #{env_pwd}/app/models/google.rb")
end
env_pwd = ENV['PWD'] env_pwd = ENV['PWD']
app_path = File.expand_path(__dir__) app_path = File.expand_path(__dir__)
template_path = env_pwd + '/app/templates' template_path = env_pwd + '/app/templates'