Skip to content

Commit 966b57c

Browse files
committed
Have env vars changes take effekt after a down
1 parent a300523 commit 966b57c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Taskfile.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ tasks:
8585
up:
8686
desc: Take the environment up without altering the existing state of the containers
8787
cmds:
88+
- |
89+
if [ ! -f docker-compose.yml ]; then
90+
echo "ERROR: docker-compose.yml not found. Please run 'task install' to set up the system before starting the environment."
91+
exit 1
92+
fi
93+
- task _dc_compile
8894
- docker compose --env-file .env.local --env-file .env.docker.local -f docker-compose.yml up -d
8995

9096
stop:
@@ -192,10 +198,8 @@ tasks:
192198
_env_files:
193199
cmds:
194200
- |
195-
if [ ! -f .env.local ]; then
196-
echo ".env.local does not exist. Copying .env.example to .env.local..."
197-
cp .env.example .env.local
198-
fi
201+
echo "Copying .env.example to .env.local..."
202+
cp .env.example .env.local
199203
- |
200204
if [ ! -f .env.docker.local ]; then
201205
echo ".env.docker.local does not exist. Copying .env.docker.example to .env.docker.local..."

0 commit comments

Comments
 (0)