Add .env guard
This commit is contained in:
parent
7aec0e7d2c
commit
1f074bbd17
1 changed files with 7 additions and 3 deletions
10
Makefile
10
Makefile
|
|
@ -58,13 +58,17 @@ setup-signal:
|
|||
create-admin-user:
|
||||
docker exec -i $(shell docker ps -aqf "name=metamigo-postgresql") bash < ./scripts/create-admin-user.sh
|
||||
|
||||
start:
|
||||
|
||||
.env:
|
||||
@test -f .env || echo "You must create .env please refer to the README" && exit 1
|
||||
|
||||
start: .env
|
||||
CURRENT_UID=$(CURRENT_UID) docker-compose up -d
|
||||
|
||||
start-dev:
|
||||
start-dev: .env
|
||||
CURRENT_UID=$(CURRENT_UID) docker-compose up --build -d
|
||||
|
||||
restart:
|
||||
restart: .env
|
||||
CURRENT_UID=$(CURRENT_UID) docker restart $(shell docker ps -a -q)
|
||||
|
||||
stop:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue