Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dotenv rails for setting up development ENV #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RAILS_FEDEX_KEY=n7O7Ukp3IRndmsRJ
RAILS_FEDEX_PASSWORD=DSYpaZjRndmWeHPbJnPCrJiQl
RAILS_FEDEX_ACCOUNT=555999555
RAILS_FEDEX_METER=555888555
RAILS_FEDEX_MODE=TEST
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@
*.swp

.byebug_history

# Developer's test environment settings
.env
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ group :development do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'

gem 'dotenv-rails' # easy ENV setup

# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'

Expand Down
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ GEM
coffee-script-source (1.12.2)
concurrent-ruby (1.0.3)
debug_inspector (0.0.2)
dotenv (2.2.1)
dotenv-rails (2.2.1)
dotenv (= 2.2.1)
railties (>= 3.2, < 5.2)
erubis (2.7.0)
execjs (2.7.0)
faker (1.4.2)
Expand Down Expand Up @@ -234,6 +238,7 @@ DEPENDENCIES
bootstrap3-datetimepicker-rails (~> 4.0.0)
byebug
coffee-rails (~> 4.1.0)
dotenv-rails
faker (= 1.4.2)
fedex!
guard
Expand Down Expand Up @@ -263,4 +268,4 @@ RUBY VERSION
ruby 2.1.10p492

BUNDLED WITH
1.15.1
1.15.4