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/**/*
|
coverage/**/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.byebug_history
|
.byebug_history
|
||||||
|
.env
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,6 +1,8 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
|
gem 'dotenv-rails', groups: [:development, :test]
|
||||||
|
|
||||||
gem 'rails', '5.0.0.1'
|
gem 'rails', '5.0.0.1'
|
||||||
|
|
||||||
gem 'actioncable', '5.0.0.1'
|
gem 'actioncable', '5.0.0.1'
|
||||||
|
|
|
@ -130,6 +130,10 @@ GEM
|
||||||
docile (1.1.5)
|
docile (1.1.5)
|
||||||
domain_name (0.5.20161129)
|
domain_name (0.5.20161129)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
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)
|
draper (3.0.0.pre1)
|
||||||
actionpack (~> 5.0)
|
actionpack (~> 5.0)
|
||||||
activemodel (~> 5.0)
|
activemodel (~> 5.0)
|
||||||
|
@ -651,6 +655,7 @@ DEPENDENCIES
|
||||||
database_cleaner
|
database_cleaner
|
||||||
deep_cloneable (~> 2.2.1)
|
deep_cloneable (~> 2.2.1)
|
||||||
devise
|
devise
|
||||||
|
dotenv-rails
|
||||||
draper (~> 3.0.0.pre1)
|
draper (~> 3.0.0.pre1)
|
||||||
factory_girl
|
factory_girl
|
||||||
fog
|
fog
|
||||||
|
|
|
@ -74,6 +74,7 @@ set :shared_paths, [
|
||||||
'public/system',
|
'public/system',
|
||||||
'public/uploads',
|
'public/uploads',
|
||||||
'config/database.yml',
|
'config/database.yml',
|
||||||
|
"config/newrelic.yml",
|
||||||
"config/fog_credentials.yml",
|
"config/fog_credentials.yml",
|
||||||
'config/initializers/secret_token.rb',
|
'config/initializers/secret_token.rb',
|
||||||
'config/initializers/features.yml',
|
'config/initializers/features.yml',
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
common: &default_settings
|
common: &default_settings
|
||||||
# Required license key associated with your New Relic account.
|
# 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
|
# 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
|
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
|
||||||
|
|
Loading…
Reference in a new issue