Skip to content

Commit 69be42c

Browse files
committed
copy .env file using bash
1 parent 849f4fd commit 69be42c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ build:
3333
push:
3434
@echo "note: If the repository is set as an automatted build you will NOT be able to push"
3535
docker push $(IMAGE_NAME):$(VERSION)
36-
36+
3737
run:
38-
php -r 'file_exists(".env") || copy(".env.example", ".env");'
38+
[ ! -f .env ] && echo '.env2 file does not exist, copy a base env template' && cp .env.example .env || echo "env file exists"
3939
docker-compose -f docker-compose.local.yml up -d
4040

4141
start: run

0 commit comments

Comments
 (0)