TasteEngine / deploy /tasteengine.service
Abdallah4z's picture
Production readiness: port 7860, Dockerfile, HF Spaces config
f9ade9b
Raw
History Blame Contribute Delete
650 Bytes
[Unit]
Description=TasteEngine Recommender System
After=network.target
[Service]
Type=simple
User=abdallah
WorkingDirectory=/home/abdallah/recommender-project/TasteEngine
Environment=OPENBLAS_NUM_THREADS=1
Environment=OMP_NUM_THREADS=1
Environment=PREWARM_CACHE=1
EnvironmentFile=/home/abdallah/recommender-project/TasteEngine/.env
ExecStart=/home/abdallah/.local/bin/gunicorn app:app \
--workers 4 \
--timeout 120 \
--bind 0.0.0.0:5000 \
--access-logfile /var/log/tasteengine/access.log \
--error-logfile /var/log/tasteengine/error.log \
--log-level info
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target