activation form

This commit is contained in:
Yan
2017-11-09 18:30:33 +06:30
parent 053a8dbf8a
commit 9c50e1486f
2 changed files with 18 additions and 0 deletions

4
config/initializers/license.rb Executable file
View File

@@ -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

14
config/license.yml Executable file
View File

@@ -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