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 f56f125 commit f3c9f0cCopy full SHA for f3c9f0c
1 file changed
bin/release
100644
100755
@@ -1,8 +1,20 @@
1
#!/usr/bin/env bash
2
# Release script for Python buildpack with uv support
3
4
+# If the app provides its own Procfile, let Cloud Foundry use that.
5
+if [ -f "Procfile" ]; then
6
+ exit 0
7
+# Otherwise, choose a reasonable default entrypoint based on common app files.
8
+elif [ -f "main.py" ]; then
9
+ DEFAULT_WEB_PROCESS="python main.py"
10
+elif [ -f "app.py" ]; then
11
+ DEFAULT_WEB_PROCESS="python app.py"
12
+else
13
+ DEFAULT_WEB_PROCESS="python -m uvicorn main:app --host 0.0.0.0 --port \${PORT:-8000}"
14
+fi
15
+
16
cat <<EOF
17
---
18
default_process_types:
- web: python app.py
19
+ web: ${DEFAULT_WEB_PROCESS}
20
EOF
0 commit comments