Update temp_file

This commit is contained in:
bohung committed 2022-08-30 11:29:55 +08:00
1 parent 3c68b65803
commit 79769962f3
1 file changed
+1 -1
+1 -1
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