-
Notifications
You must be signed in to change notification settings - Fork 5
Dotenv
Harmen Janssen edited this page Jun 15, 2017
·
1 revision
Garp understands dotenv files in your root, and will make its values available for use in the traditional ini files.
You can use them like this:
cdn.s3.apiKey = ${S3_APIKEY}
cdn.s3.secret = ${S3_SECRET}
Note, in a lot of cases this defeats the purpose of the cascading nature of Zend Framework's ini files.
All you need to do on a webserver is move a .env
file into the shared directory, and configure Capistrano as follows:
# in application/configs/deploy.rb
set :linked_files, fetch(:linked_files, []).push('.env')
This file will be linked in the root after every deploy.