cap deployment setup

This commit is contained in:
Min Zeya Phyo
2019-10-25 12:29:56 +06:30
8 changed files with 155 additions and 41 deletions

View File

@@ -1,6 +1,8 @@
if File.exist?("config/license.yml")
if File.exist?("config/license.yml")
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
end
else
ENV["SERVER_MODE"] = "cloud"
end