From 83f51f72f9b3d027ae1414d9f5ffe99828718cb6 Mon Sep 17 00:00:00 2001 From: hazamashoken <46592735+hazamashoken@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:24:26 +0000 Subject: [PATCH] use env instead of hard code env --- gateway/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/Makefile b/gateway/Makefile index 0bd27bd..fcdf0b1 100644 --- a/gateway/Makefile +++ b/gateway/Makefile @@ -17,8 +17,8 @@ mm: poetry run python manage.py makemigrations # Drop local database tables drop-tables: - psql "dbname=postgres host=db port=5432 user=postgres password=postgres" -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" ;\ - exit 0; + psql "dbname=${DB_NAME} host=${DB_HOST} port=${DB_PORT} user=${DB_USER} password=${DB_PASS}" -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" ;\ + exit 0; # Re-initialize project init-proj: drop-tables m # Run hypercorn WSGI