diff --git a/Makefile b/Makefile index 51b791b..4926376 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,10 @@ build: dev dev: ${DIR_BACK}/.env 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 prod: 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: ${DIR_BACK}/.env.example diff --git a/README.md b/README.md index d3a6780..71c620b 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,15 @@ Use the file `docker-compose.prod.yml` to start the app in production mode, it c ``` docker compose -f docker-compose.dev.yml up ``` + + + + + +### TOADD + +1) be in the docker group by `sudo usermod -aG docker $USER` +2) `export $(grep -v '^#' back-end/.env.production | xargs)` and then `make`. + +### EOF +