Force TCP for postgres

This commit is contained in:
Oliver Walters 2021-03-31 20:14:57 +11:00
parent 48cbd3be97
commit c66dddc03f
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,6 @@ jobs:
env: env:
POSTGRES_USER: inventree POSTGRES_USER: inventree
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
POSTGRES_DB: inventree_test_db
ports: ports:
- 5432:5432 - 5432:5432

View File

@ -12,7 +12,8 @@ if 'test' in sys.argv:
# Ensure postgresql backend is being used # Ensure postgresql backend is being used
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.postgresql',
'NAME': 'inventree_test_db', 'NAME': 'inventree_test_db',
'USER': 'postgres', 'USER': 'inventree',
'PASSWORD': 'password', 'PASSWORD': 'password',
'HOST': '127.0.0.1',
'PORT': '5432' 'PORT': '5432'
} }