From 79769962f3ee3b367226aeefe4f77ce725a739bc Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 30 Aug 2022 11:29:55 +0800 Subject: [PATCH] Update temp_file --- temp_file/config/set_global_variable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temp_file/config/set_global_variable.rb b/temp_file/config/set_global_variable.rb index b707477..903c0fd 100644 --- a/temp_file/config/set_global_variable.rb +++ b/temp_file/config/set_global_variable.rb @@ -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