Skip to content

Commit

Permalink
Fixing missing database
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Jun 13, 2019
1 parent 6e28143 commit 6545537
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ install:
- cp db/schema.rb.example db/schema.rb
- ./lib/exporter-deps.sh > /dev/null 2>&1
- bundle install && yarn install
- mysql -e "CREATE DATABASE mapknitter; CREATE DATABASE mapknitter_test;"
- if [ $RAILS_ENV == 'production' ]; then
bundle exec rake db:create;
bundle exec rake db:schema:load;
else
bundle exec rake db:setup || bundle exec rake db:migrate;
fi
Expand Down
8 changes: 5 additions & 3 deletions config/database.yml.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
default: &default
encoding: utf8
adapter: mysql2
host: 127.0.0.1

development:
<<: *default
username:
password:
database: mapknitter-dev
database: mapknitter_dev

production:
<<: *default
Expand All @@ -16,5 +17,6 @@ production:

test:
<<: *default
username: root
database: mapknitter-test
username:
password:
database: mapknitter_test

0 comments on commit 6545537

Please sign in to comment.