diff --git a/.gitignore b/.gitignore index 5bbf884..2cbbca9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ node_modules/ yarn-error.log .yarnrc.yml .yarn/ +.yarnrc packages/backend/environments/local.toml \ No newline at end of file diff --git a/build-webapp.sh b/build-webapp.sh index a77ec64..b22dde5 100755 --- a/build-webapp.sh +++ b/build-webapp.sh @@ -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 <