Build webapp script fix (#111)

* build-webapp-script-fix

* build-webapp-script-fix
This commit is contained in:
Vivian Phung authored and GitHub committed 2024-02-26 18:06:24 -05:00
1 parent 48fd953c60
commit dcf271a01b
2 files changed
+9

No files matched your search

+1
View File
@@ -2,5 +2,6 @@ node_modules/
yarn-error.log
.yarnrc.yml
.yarn/
.yarnrc
packages/backend/environments/local.toml
+8
View File
@@ -9,6 +9,14 @@ if [[ -d "$DEST_DIR" ]]; then
exit 1
fi
if [[ -f "$PKG_DIR/.env" ]]; then
echo "Using existing .env file"
else
mv "$PKG_DIR/.env.example" "$PKG_DIR/.env"
echo "Created .env file. Please populate with the correct values."
exit 1
fi
cat > $PKG_DIR/.env <<EOF
REACT_APP_SERVER_URL = 'LACONIC_HOSTED_CONFIG_app_server_url'
REACT_APP_GITHUB_CLIENT_ID = 'LACONIC_HOSTED_CONFIG_app_github_clientid'