It looks like you have put your project in the /root directory.
/root
/root/status_report_automation/
It is better to put it in /var/www/ like this:
/var/www/
$ sudo mkdir /var/www/status_report_automation/
Then set the correct permissions on the directory and files.
$ sudo chown -R $USER:www-data /var/www/status_report_automation/
Make sure your systemd service file looks something like this in the service section:
[Service] User=YOUR_USER_NAME_GOES_HERE Group=www-data WorkingDirectory=/var/www/status_report_automation/ ExecStart=/var/www/status_report_automation/.venv/bin/gunicorn --workers 3 --bind unix:/var/www/status_report_automation/status_report_automation.sock wsgi:app
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It looks like you have put your project in the
/root
directory.It is better to put it in
/var/www/
like this:Then set the correct permissions on the directory and files.
Make sure your systemd service file looks something like this in the service section: