Rails ENV Variables

From Ocean Framework Documentation Wiki
Jump to: navigation, search
AWS_ACCESS_KEY_ID
The AWS Access Key ID. Will be set during initialisation from config/aws.yml, unless already present in the environment.
AWS_SECRET_ACCESS_KEY
The AWS Secret Access Key. Will be set during initialisation from config/aws.yml, unless already present in the environment.
AWS_REGION
The AWS Region. Will be set during initialisation from config/aws.yml, unless already present in the environment.
browser
Set this for front end applications running to select the browser to use for the automated tests. Used in spec/spec_helper.rb.
CLIENT_HOST
Set this for front end applications to override the host of the client application under test. Defaults to the standard location of the client app. Used in spec/spec_helper.rb.
CLIENT_PORT
Set this for front end applications to override the port of the client application under test. Defaults to 80. Used in spec/spec_helper.rb.
NO_OCEAN_AUTH
If present, no Ocean authentication and authorisation will be performed. Used in specs.
OCEAN_API_HOST
Overrides the URI of the Ocean API.
OVERRIDE_API_PASSWORD
When present, will set the Rails constant API_PASSWORD to the given value.
OVERRIDE_BASE_DOMAIN
When present, will set the Rails constant BASE_DOMAIN to the given value.
OVERRIDE_xxx
If xxx is a constant defined in the config/config.yml Rails configuration file, will override the value provided in that file with the given value. Has no effect unless xxx is a constant present in config/config.yml.
RAILS_ENV
The Rails environment (development, test, production) of the Ocean Rails application.