fix: Makefile now export the user args to connect.

This commit is contained in:
damien DELPY 2024-12-04 10:37:03 +01:00
parent a9ea4f44e0
commit 8cf0eeca2e
No known key found for this signature in database

View File

@ -8,10 +8,12 @@ build: dev
dev: ${DIR_BACK}/.env dev: ${DIR_BACK}/.env
cd ${DIR_SQL} && make && cd - cd ${DIR_SQL} && make && cd -
export $(grep -v '^#' back-end/.env.production | xargs)
(. ${DIR_BACK}/.env && ${DOCKER_COMPOSE} -f docker-compose.dev.yml up) || true (. ${DIR_BACK}/.env && ${DOCKER_COMPOSE} -f docker-compose.dev.yml up) || true
prod: prod:
cd ${DIR_SQL} && make && cd - cd ${DIR_SQL} && make && cd -
export $(grep -v '^#' back-end/.env.production | xargs)
(. ${DIR_BACK}/.env.production && ${DOCKER_COMPOSE} -f docker-compose.prod.yml up) || true (. ${DIR_BACK}/.env.production && ${DOCKER_COMPOSE} -f docker-compose.prod.yml up) || true
$(DIR_BACK)/.env: ${DIR_BACK}/.env.example $(DIR_BACK)/.env: ${DIR_BACK}/.env.example