First revision

This commit is contained in:
ldy
2025-06-10 12:02:57 +08:00
parent 4f79a72294
commit 97c73b639d
45 changed files with 103 additions and 964 deletions

12
surfsmart-celery.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=SurfSmart Celery Worker
After=network.target redis.service
[Service]
WorkingDirectory=/opt/surfsmart/backend_flask
EnvironmentFile=/opt/surfsmart/.env
ExecStart=/opt/surfsmart/venv/bin/celery -A backend_flask.celery_worker.celery_app worker --loglevel=info
Restart=always
[Install]
WantedBy=multi-user.target