Skip to content

Commit

Permalink
Support local .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aupajo committed Aug 12, 2021
1 parent 15bdadf commit dd9b37a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

config/database.yml
db/schema.rb
.rspec
docker-compose.yml

/public/packs
Expand All @@ -27,5 +26,10 @@ docker-compose.yml
/yarn-error.log
yarn-debug.log*
.yarn-integrity
.env
public/assets

# Ignore RSpec persistence file
.rspec-status

# Ignore local environment variable configuration
.env
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--require spec_helper
--require rails_helper
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ gem 'sass-rails', '>= 6'
gem 'webpacker', '~> 5.0'

group :development, :test do
# Load local .env files
gem 'dotenv-rails'

gem 'rspec-rails'
gem 'capybara'
gem 'capybara-email'
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ GEM
concurrent-ruby (1.1.9)
crass (1.0.6)
diff-lcs (1.4.4)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
railties (>= 3.2)
erubi (1.10.0)
ffi (1.15.3)
globalid (0.4.2)
Expand Down Expand Up @@ -208,6 +212,7 @@ DEPENDENCIES
bootsnap (>= 1.4.4)
capybara
capybara-email
dotenv-rails
listen
pg
puma
Expand Down

0 comments on commit dd9b37a

Please sign in to comment.