Update temp_file

This commit is contained in:
BoHung Chiu 2022-08-30 11:29:55 +08:00
parent 3c68b65803
commit 79769962f3
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ if Site.count == 0
site.valid_locales = [:en, :zh_tw] + extra_langs
site.in_use_locales = site.valid_locales
site.site_type = "orbit"
site.template = (Dir.glob("#{Rails.root}/app/templates/*").collect{|temp| temp.split('/').last}-['mobile']).first
site.template = (Dir.glob("#{ENV['PWD']}/app/templates/*").collect{|temp| temp.split('/').last}-['mobile']).first
site.save
end