Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- django.db.utils.OperationalError: could not connect to server: No such file or directory
- Is the server running locally and accepting
- connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- image: python:3.6.1
- services:
- - postgres:9.3
- variables:
- POSTGRES_DB: project_ci_test
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: ""
- test:
- script:
- - export DATABASE_URL=postgres://postgres:@postgres:5432/project_ci_test
- - apt-get update -qy
- - apt-get install -y python-dev python-pip
- - pip install -r requirements.txt
- - python manage.py makemigrations
- - python manage.py migrate
- - python manage.py test Project
- DATABASES = {
- 'default': {
- 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
- 'NAME' : 'project_ci_test',
- 'USER' : 'postgres',
- 'PASSWORD': '',
- }
- }
Add Comment
Please, Sign In to add comment