Skip to content

Commit

Permalink
Merge pull request #765 from hardyjohnson/enhancement/675-env-init-me…
Browse files Browse the repository at this point in the history
…ssage

Add file created message for env-init.
  • Loading branch information
navarr authored Jun 13, 2024
2 parents 61bed58 + 6ec9b1b commit d19af15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commands/env-init.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ if [[ ! -z $ENV_INIT_FILE ]]; then
export WARDEN_ENV_NAME
export GENERATED_APP_KEY="base64:$(dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64)"
envsubst '$WARDEN_ENV_NAME:$GENERATED_APP_KEY' < "${ENV_INIT_FILE}" >> "${WARDEN_ENV_PATH}/.env"
fi

if [ -s "${WARDEN_ENV_PATH}/.env" ]; then
printf "A warden env file was created at ${WARDEN_ENV_PATH}/.env\nYou may now use \'warden env up\' to start your environment.\n"
exit 0
fi

0 comments on commit d19af15

Please sign in to comment.