Update temp_file
This commit is contained in:
parent
3c68b65803
commit
79769962f3
|
@ -40,7 +40,7 @@ if Site.count == 0
|
||||||
site.valid_locales = [:en, :zh_tw] + extra_langs
|
site.valid_locales = [:en, :zh_tw] + extra_langs
|
||||||
site.in_use_locales = site.valid_locales
|
site.in_use_locales = site.valid_locales
|
||||||
site.site_type = "orbit"
|
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
|
site.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue