All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m5s
12 lines
297 B
Bash
12 lines
297 B
Bash
#!/bin/bash
|
|
|
|
# Default to development environment
|
|
FLASK_ENV=${FLASK_ENV:-development}
|
|
|
|
if [ "$FLASK_ENV" = "production" ]; then
|
|
echo "Starting in production mode..."
|
|
python3 -m gunicorn --config gunicorn.conf.py app:app
|
|
else
|
|
echo "Starting in development mode..."
|
|
python3 app.py
|
|
fi |