- Split differrent caching mechanisms (types, version tree, config) into different cachers - Improve resource usage on starting components, and correct gevent usage - Refine repopack usage for eveai_app (too large) - Change nginx dockerfile to allow for specialist overviews being served statically
16 lines
524 B
Bash
Executable File
16 lines
524 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
|
|
|
|
# Set FLASK_APP environment variables
|
|
export FLASK_APP=${PROJECT_DIR}/scripts/run_eveai_app.py # Adjust the path to your Flask app entry point
|
|
|
|
|
|
# Ensure we can write the logs
|
|
chown -R appuser:appuser /app/logs
|
|
|
|
# Start Flask app
|
|
gunicorn -w 1 -k gevent -b 0.0.0.0:5001 --worker-connections 100 scripts.run_eveai_api:app
|