Skip to content

Instantly share code, notes, and snippets.

@bearzk
Created October 9, 2022 18:02
Show Gist options
  • Save bearzk/a670614c398428463170e61cd98de31b to your computer and use it in GitHub Desktop.
Save bearzk/a670614c398428463170e61cd98de31b to your computer and use it in GitHub Desktop.
setup .env from .env.example
# put setup script here
# - create default config file
# - etc
echo "########################"
echo "## setting up project ##"
echo "########################"
echo
echo
FILE=.env
if test -f "$FILE"; then
echo "$FILE exists."
else
echo "$FILE doesn't exist, copying .env.example as .env"
cp .env.example .env
fi
echo "read through comments in .env.example if you are unsure about certain env vars."
echo
echo
echo "########################"
echo "## done ##"
echo "########################"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment