Using dotenv for local env variables
This commit is contained in:
parent
53b8c4aaa4
commit
19e3d336e9
5 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -35,3 +35,4 @@ uploads/*
|
|||
coverage/**/*
|
||||
.DS_Store
|
||||
.byebug_history
|
||||
.env
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,6 +1,8 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||
gem 'dotenv-rails', groups: [:development, :test]
|
||||
|
||||
gem 'rails', '5.0.0.1'
|
||||
|
||||
gem 'actioncable', '5.0.0.1'
|
||||
|
|
|
@ -130,6 +130,10 @@ GEM
|
|||
docile (1.1.5)
|
||||
domain_name (0.5.20161129)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dotenv (2.2.0)
|
||||
dotenv-rails (2.2.0)
|
||||
dotenv (= 2.2.0)
|
||||
railties (>= 3.2, < 5.1)
|
||||
draper (3.0.0.pre1)
|
||||
actionpack (~> 5.0)
|
||||
activemodel (~> 5.0)
|
||||
|
@ -651,6 +655,7 @@ DEPENDENCIES
|
|||
database_cleaner
|
||||
deep_cloneable (~> 2.2.1)
|
||||
devise
|
||||
dotenv-rails
|
||||
draper (~> 3.0.0.pre1)
|
||||
factory_girl
|
||||
fog
|
||||
|
|
|
@ -74,6 +74,7 @@ set :shared_paths, [
|
|||
'public/system',
|
||||
'public/uploads',
|
||||
'config/database.yml',
|
||||
"config/newrelic.yml",
|
||||
"config/fog_credentials.yml",
|
||||
'config/initializers/secret_token.rb',
|
||||
'config/initializers/features.yml',
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
common: &default_settings
|
||||
# Required license key associated with your New Relic account.
|
||||
license_key: 123
|
||||
license_key: <%= ENV['NEWRELIC_LICENSE_KEY'] %>
|
||||
|
||||
# Your application name. Renaming here affects where data displays in New
|
||||
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
|
||||
|
|
Loading…
Reference in a new issue