Answer the question
In order to leave comments, you need to log in
How to make travis-ci and postgresql friends?
Hello guys, I have this problem: I want to link 'travis-ci' to a turnip on github for testing, but when the build starts, the console swears at the wrong config in the database
rake aborted!
Psych::BadAlias: Cannot load `Rails.application.database_configuration`:
Unknown alias: postgresql
defaults: &defaults
pool: 5
timeout: 5000
encoding: unicode
adapter: postgresql
host: localhost
development:
adapter: postgresql
encoding: utf8
database: timonin_development
pool: 5
username: postgres
test:
adapter: postgresql
encoding: utf8
database: timonin_test
pool: 5
username: postgres
production:
adapter: postgresql
encoding: utf8
database: timonin_production
pool: 5
username: postgres
language: ruby
rvm:
- "2.1.2"
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rake
before_script:
- cp config/database.yml.example config/database.yml
- psql -c 'create database timonin_test' -U postgres
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question