feat(release): publish minimal self-contained Magent source
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Process supervision shares the application's Python runtime; do not install
|
||||
# the OS supervisor package and a second system Python into the release image.
|
||||
supervisor==4.3.0
|
||||
@@ -0,0 +1,32 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
pidfile=/tmp/supervisord.pid
|
||||
|
||||
[program:backend]
|
||||
directory=/app
|
||||
command=uvicorn app.main:app --host 0.0.0.0 --port 8000
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
priority=10
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
|
||||
[program:frontend]
|
||||
directory=/app/frontend
|
||||
command=/usr/local/bin/node /app/frontend/server.js
|
||||
environment=HOSTNAME="0.0.0.0",PORT="3000",NEXT_PUBLIC_API_BASE="/api",BACKEND_INTERNAL_URL="http://127.0.0.1:8000",NODE_ENV="production",NEXT_TELEMETRY_DISABLED="1"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
priority=20
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
Reference in New Issue
Block a user