lib/cirneco/base.rb in cirneco-0.9.12 vs lib/cirneco/base.rb in cirneco-0.9.13
- old
+ new
@@ -2,11 +2,11 @@
module Base
# load ENV variables from .env file if it exists
env_file = File.expand_path("../../../.env", __FILE__)
if File.exist?(env_file)
require 'dotenv'
- Dotenv.load! env_file
+ Dotenv.overload env_file
end
# load ENV variables from container environment if json file exists
# see https://github.com/phusion/baseimage-docker#envvar_dumps
env_json_file = "/etc/container_environment.json"
@@ -14,8 +14,8 @@
env_vars = JSON.parse(File.read(env_json_file))
env_vars.each { |k, v| ENV[k] = v }
end
# default values for some ENV variables
- ENV['MDS_URL'] ||= "https://mds-sandbox.datacite.org"
+ ENV['MDS_URL'] ||= "https://mds.test.datacite.org"
end
end