check for dotenv in scripts
This commit is contained in:
parent
513b4c9161
commit
64e780b7af
7
dev.sh
7
dev.sh
|
@ -1,5 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! -f .env ]; then
|
||||||
|
echo "No .env; Please create .env and try again"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
. '.env'
|
||||||
|
|
||||||
cp docker-compose.dev docker-compose.yml
|
cp docker-compose.dev docker-compose.yml
|
||||||
cp Dockerfile.dev Dockerfile
|
cp Dockerfile.dev Dockerfile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue