.
This commit is contained in:
6
start.sh
6
start.sh
@@ -5,6 +5,12 @@
|
||||
|
||||
#docker stack deploy -c compose.yml ${PWD##*/}
|
||||
|
||||
|
||||
# Check if .env file exists in the current directory
|
||||
if [ ! -f ".env" ]; then
|
||||
touch .env
|
||||
fi
|
||||
|
||||
if [ -f ".env" ]; then
|
||||
env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user