File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ tasks:
85
85
up :
86
86
desc : Take the environment up without altering the existing state of the containers
87
87
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
88
94
- docker compose --env-file .env.local --env-file .env.docker.local -f docker-compose.yml up -d
89
95
90
96
stop :
@@ -192,10 +198,8 @@ tasks:
192
198
_env_files :
193
199
cmds :
194
200
- |
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
199
203
- |
200
204
if [ ! -f .env.docker.local ]; then
201
205
echo ".env.docker.local does not exist. Copying .env.docker.example to .env.docker.local..."
You can’t perform that action at this time.
0 commit comments