- correct startup of applications using gevent - introduce startup scripts (eveai_app) - caching manager for all configurations
17 lines
601 B
Bash
Executable File
17 lines
601 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "/app/" || exit 1
|
|
export PROJECT_DIR="/app"
|
|
export PYTHONPATH="$PROJECT_DIR/patched_packages:$PYTHONPATH:$PROJECT_DIR" # Include the app directory in the Python path & patched packages
|
|
|
|
# Ensure we can write the logs
|
|
chown -R appuser:appuser /app/logs
|
|
|
|
# Set flask environment variables
|
|
#export FLASK_ENV=development # Use 'production' as appropriate
|
|
#export FLASK_DEBUG=1 # Use 0 for production
|
|
echo "Starting EveAI Chat"
|
|
|
|
# Start Flask app
|
|
gunicorn -w 1 -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -b 0.0.0.0:5001 --worker-connections 100 scripts.run_eveai_chat:app
|