diff --git a/config/initializers/license.rb b/config/initializers/license.rb new file mode 100755 index 00000000..edb075ea --- /dev/null +++ b/config/initializers/license.rb @@ -0,0 +1,4 @@ +config = YAML.load_file(Rails.root.join("config/license.yml")) +config.fetch(Rails.env, {}).each do |key, value| + ENV[key.upcase] = value.to_s +end \ No newline at end of file diff --git a/config/license.yml b/config/license.yml new file mode 100755 index 00000000..5e66e752 --- /dev/null +++ b/config/license.yml @@ -0,0 +1,14 @@ +development: + server_mode: local + license_key: IAAXHpbSWAfvlWGYpDoXvZdmuRABNGk + + +test: + sx_provision_url: secure.smartsales.asia/api + +# Do not keep production secrets in the repository, +# instead read values from the environment. +production: + server_mode: cloud + license_key: IAAXHpbSWAfvlWGYpDoXvZdmuRABNGk +