We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acae3e commit 50ea4feCopy full SHA for 50ea4fe
1 file changed
scripts/generate-client.sh
@@ -4,6 +4,14 @@ set -e
4
set -x
5
6
cd backend
7
+# Provide safe defaults for CI where ../.env may be missing
8
+export PROJECT_NAME=${PROJECT_NAME:-"full-stack-fastapi-template"}
9
+export POSTGRES_SERVER=${POSTGRES_SERVER:-"localhost"}
10
+export POSTGRES_USER=${POSTGRES_USER:-"postgres"}
11
+export POSTGRES_DB=${POSTGRES_DB:-"app"}
12
+export FIRST_SUPERUSER=${FIRST_SUPERUSER:-"admin@example.com"}
13
+export FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD:-"changethis"}
14
+
15
uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
16
cd ..
17
mv openapi.json frontend/
0 commit comments