Skip to content

Commit

Permalink
Use dotenv-rails to configure the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Dec 11, 2015
1 parent 53dd743 commit bed9116
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Gemfile.lock
test/dummy/log/*.log
test/dummy/.env
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ cache: bundler
services:
- elasticsearch
before_script:
- bundle exec rake app:db:create
- cp test/dummy/.env.example test/dummy/.env
- bundle exec rake app:db:setup
- bundle exec rake app:index:reset
env:
- "GEM=ar:mysql2"
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'https://rubygems.org'

gemspec

gem 'dotenv-rails'
gem 'fakeweb'
gem 'oj'
gem 'mysql2'
Expand Down
1 change: 1 addition & 0 deletions test/dummy/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgres://postgres:@localhost/elastic_record_development
1 change: 1 addition & 0 deletions test/dummy/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgres://postgres:@localhost/elastic_record_test
15 changes: 0 additions & 15 deletions test/dummy/config/database.yml

This file was deleted.

0 comments on commit bed9116

Please sign in to comment.