I'm new to gunicorn and trying to deploy a django website on an ubuntu. I have used:
pip3 install gunicorn
sudo apt-get install gunicorn
but when I want to fill this file:
sudo nano /etc/systemd/system/gunicorn.service
and I fill it with:
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target[Service]
User=sammy
Group=www-data
WorkingDirectory=/home/sammy/myprojectdir
ExecStart=/home/sammy/myprojectdir/myprojectenv/bin/gunicorn \--access-logfile - \--workers 3 \--bind unix:/run/gunicorn.sock \myproject.wsgi:application[Install]
WantedBy=multi-user.target
but there is no gunicorn file in /bin
what is the missing part?
by using this command:
sudo journalctl -u gunicorn.socket
sudo systemctl status gunicorn
gunicorn.service: Failed at step EXEC spawning /home/tw/tw_git2/tw_git2/ninipayenv/bin/gunicorn: No such file or directory