install dotenv to help managed env vars
This commit is contained in:
parent
6767771d7d
commit
f3400d4654
4 changed files with 22 additions and 0 deletions
18
.example-env
Normal file
18
.example-env
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
RAILS_ENV=development
|
||||||
|
|
||||||
|
AWS_ACCESS_KEY_ID
|
||||||
|
AWS_SECRET_ACCESS_KEY
|
||||||
|
BUNDLE_GEMFILE
|
||||||
|
SMTP_DOMAIN
|
||||||
|
SMTP_PASSWORD
|
||||||
|
SMTP_PORT
|
||||||
|
SMTP_SERVER
|
||||||
|
SMTP_USERNAME
|
||||||
|
SSO_KEY
|
||||||
|
|
||||||
|
## find the ENV currently in use in the app using :
|
||||||
|
## grep -rIso -P "(?<=ENV)(\.fetch\(|\[).[A-Z_]+.(\)|\])"
|
||||||
|
|
||||||
|
# for a uniq ordered list of env vars:
|
||||||
|
## grep -rIsoh -P "(?<=ENV)(\.fetch\(|\[).[A-Z_]+.(\)|\])" | grep -oP "[A-Z_]+" | sort -u > temp
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
realtime/node_modules
|
realtime/node_modules
|
||||||
config/database.yml
|
config/database.yml
|
||||||
|
.env
|
||||||
#public/assets
|
#public/assets
|
||||||
|
|
||||||
# Ignore bundler config
|
# Ignore bundler config
|
||||||
|
|
1
Gemfile
1
Gemfile
|
@ -17,6 +17,7 @@ gem 'rails3-jquery-autocomplete'
|
||||||
gem 'best_in_place' #in-place editing
|
gem 'best_in_place' #in-place editing
|
||||||
gem 'kaminari' # pagination
|
gem 'kaminari' # pagination
|
||||||
gem 'uservoice-ruby'
|
gem 'uservoice-ruby'
|
||||||
|
gem 'dotenv'
|
||||||
|
|
||||||
gem 'paperclip'
|
gem 'paperclip'
|
||||||
gem 'aws-sdk'
|
gem 'aws-sdk'
|
||||||
|
|
|
@ -59,6 +59,7 @@ GEM
|
||||||
responders
|
responders
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
|
dotenv (2.0.0)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.2.1)
|
execjs (2.2.1)
|
||||||
ezcrypto (0.7.2)
|
ezcrypto (0.7.2)
|
||||||
|
@ -165,6 +166,7 @@ DEPENDENCIES
|
||||||
cancan
|
cancan
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 3.2.1)
|
||||||
devise
|
devise
|
||||||
|
dotenv
|
||||||
formtastic
|
formtastic
|
||||||
formula
|
formula
|
||||||
jbuilder (= 0.8.2)
|
jbuilder (= 0.8.2)
|
||||||
|
|
Loading…
Reference in a new issue