forked from lab/TPM
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
332 B
10 lines
332 B
#!/bin/bash |
|
cd /flask |
|
echo "Working directory: $(pwd)" |
|
echo "Checking assets files:" |
|
ls -la assets*.json 2>&1 || echo "No assets files found" |
|
|
|
# Use Railway's PORT env var if available, otherwise default to 8000 |
|
PORT=${PORT:-8000} |
|
echo "Starting gunicorn on port $PORT..." |
|
exec gunicorn -w 2 -b 0.0.0.0:$PORT --timeout 120 main:app
|
|
|