4-10 Gunicorn 문제해결

혹여 저처럼 미래에 고생할 분들을 위해 올려봅니다

Gunicorn서비스 실행에 실패하는 경우가 있는데
'''
[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/projects/mysite
EnvironmentFile=/home/ubuntu/venvs/mysite.env
ExecStart=/home/ubuntu/venvs/mysite/bin/gunicorn \
--workers 2 \
--bind unix:/tmp/gunicorn.sock \
config.wsgi:application

[Install]
WantedBy=multi-user.target
'''

저같은 경우, 라이트세일 서버가 아닌 노트북으로 돌리고 있어서
user를 노트북에 설정된 이름으로
Group를 삭제하니 해결됐습니다.

자문자답이네요..

iill6022 351

2022년 6월 19일 12:59 오전

목록으로