fix: export variables need to be done by the user, not by the makefile.
This commit is contained in:
parent
671ac9e88a
commit
7613866ff4
2
Makefile
2
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
|
||||
|
12
README.md
12
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user