Skip to content

Commit

Permalink
feat: add support for .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Nov 13, 2024
1 parent d645d1a commit 52a60ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.emergence
.php_cs.cache
.env
9 changes: 9 additions & 0 deletions script/studio
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ if [ -n "${1}" ]; then
fi


# initialize .env
if [ ! -f .env ]; then
echo
echo "==> studio: initializing .env"
cp .env.example .env
fi


echo
echo "==> studio: configuring Chef Habitat studio Docker options…"
STUDIO_NAME="${STUDIO_NAME:-laddr-studio}"
Expand All @@ -33,6 +41,7 @@ export HAB_DOCKER_OPTS="
-v $(cd ~/.ssh; pwd)/known_hosts:/root/.ssh/known_hosts:ro
--env STUDIO_DEVELOPER_UID=$(id -u)
--env STUDIO_DEVELOPER_GID=$(id -g)
--env-file .env
"
echo "${HAB_DOCKER_OPTS}"

Expand Down

0 comments on commit 52a60ef

Please sign in to comment.