Guest User

Untitled

a guest
Dec 19th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. django.db.utils.OperationalError: could not connect to server: No such file or directory
  2. Is the server running locally and accepting
  3. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  4.  
  5. image: python:3.6.1
  6.  
  7. services:
  8. - postgres:9.3
  9.  
  10. variables:
  11. POSTGRES_DB: project_ci_test
  12. POSTGRES_USER: postgres
  13. POSTGRES_PASSWORD: ""
  14.  
  15. test:
  16. script:
  17. - export DATABASE_URL=postgres://postgres:@postgres:5432/project_ci_test
  18. - apt-get update -qy
  19. - apt-get install -y python-dev python-pip
  20. - pip install -r requirements.txt
  21. - python manage.py makemigrations
  22. - python manage.py migrate
  23. - python manage.py test Project
  24.  
  25. DATABASES = {
  26. 'default': {
  27. 'ENGINE' : 'django.db.backends.postgresql_psycopg2',
  28. 'NAME' : 'project_ci_test',
  29. 'USER' : 'postgres',
  30. 'PASSWORD': '',
  31.  
  32. }
  33. }
Add Comment
Please, Sign In to add comment