Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis CI: FATAL: role does not exist

I'm trying to get my application working w/ Travis CI but I keep getting: FATAL: role "skateparks" does not exist. Any ideas on what I could be doing wrong? I've followed their documentation.

like image 712
Kyle Decot Avatar asked Dec 06 '11 01:12

Kyle Decot


2 Answers

For the record, put something like this in your .travis.yml:

before_script:
  - psql -c "CREATE USER skateparks WITH PASSWORD 'skateparks';" -U postgres
like image 108
tbk Avatar answered Nov 11 '22 06:11

tbk


Your database.yml has this:

development:
  adapter: postgresql
  encoding: utf8
  database: skateparks_development
  username: skateparks
  password:
  template: template0 # Required for UTF8 encoding

Note the username: skateparks part. Either drop that or create the role with something like:

create role skateparks login

from the psql shell.

like image 35
mu is too short Avatar answered Nov 11 '22 06:11

mu is too short