Skip to content

Commit

Permalink
added .env check
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Apr 28, 2020
1 parent e8275db commit 573b0e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dist/kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,18 @@ _ci_build() {

DOCKER_OPT_PARAMS=$KICKSTART_DOCKER_RUN_OPTS;


# Load .env before evaluating -e command line options
if [ -e "$PROGPATH/.env" ]
then
if [ -e "$PROGPATH/.env" ]; then
echo "Adding docker environment from $PROGPATH/.env (Development only)"
DOCKER_OPT_PARAMS="$DOCKER_OPT_PARAMS --env-file $PROGPATH/.env";
elif [ -e "$PROGPATH/.env.dist" ] && [ "$#" == "0" ]; then
echo "An '.env' file is not existing but a '.env.dist' was found."
echo ""
echo "This normally indicates that you have to create a developers .env manually"
echo "in order to start the project."
echo ""
read -r -p "Hit (enter) to continue without .env file or CTRL-C to exit." choice
fi

run_container() {
Expand Down

0 comments on commit 573b0e3

Please sign in to comment.