Backend Management
How to manage the backend services
Managing Main Service
# Start the backend service
sudo systemctl start rhea_main_backend
# Enable the backend service to start on boot
sudo systemctl enable rhea_main_backend
# Check the status of the backend service
sudo systemctl status rhea_main_backend
# View the logs of the backend service
sudo journalctl -u rhea_main_backend.service -f
# Stop the backend service
sudo systemctl stop rhea_main_backend
# Disable the backend service from starting on boot
sudo systemctl disable rhea_main_backend
# Restart the backend service
sudo systemctl restart rhea_main_backend
Managing Celery
# Start the celery services
sudo systemctl start celery-beat
sudo systemctl start celery-worker1
# Enable the celery services to start on boot
sudo systemctl enable celery-beat
sudo systemctl enable celery-worker1
# Check the status of the celery services
sudo systemctl status celery-beat
sudo systemctl status celery-worker1
# View the logs of the celery services
sudo journalctl -u celery-beat.service -f
sudo journalctl -u celery-worker1.service -f
# Stop the celery services
sudo systemctl stop celery-beat
sudo systemctl stop celery-worker1