mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Set Spree::Config[:default_country_id]` from ENV vars if default country specified.
This commit is contained in:
@@ -227,4 +227,4 @@ Spree::Country.create!([
|
||||
{ name: "Saint Kitts and Nevis", iso3: "KNA", iso: "KN", iso_name: "SAINT KITTS AND NEVIS", numcode: "659" },
|
||||
{ name: "Serbia", iso3: "SRB", iso: "RS", "iso_name" => "SERBIA", numcode: "999" }
|
||||
])
|
||||
Spree::Config[:default_country_id] = Spree::Country.find_by(name: "United States").id
|
||||
Spree::Config[:default_country_id] = Spree::Country.find_by(iso: ENV.fetch("DEFAULT_COUNTRY_CODE", "US").id)
|
||||
|
||||
Reference in New Issue
Block a user