[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/myFirstAPI
ExecStart=/home/ubuntu/myFirstAPI/myFirstAPI(envのフォルダ)/bin/gunicorn --access-logfile - -- workers 3 --bind unix:/home/ubuntu/myFirstAPI/project.sock project.wsgi:application
[Install]
WantedBy=multi-user.targetsudo systemctl start gunicorn
sudo systemctl enable gunicorn
sudo systemctl status gunicorn
として動作確認したところ、
gunicorn.service - gunicorn daemon
Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor preset
Active: failed (Result: exit-code) since Sun 2018-10-28 15:07:34 UTC; 1 day 2
Main PID: 2001 (code=exited, status=3)
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: File "/home/ubuntu/myFirstAPI/my
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: return util.import_app(self.ap
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: File "/home/ubuntu/myFirstAPI/my
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: __import__(module)
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: ModuleNotFoundError: No module nam
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: [2018-10-28 15:07:34 +0000] [2020]
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: [2018-10-28 15:07:34 +0000] [2001]
Oct 28 15:07:34 ip-10-0-0-186 gunicorn[2001]: [2018-10-28 15:07:34 +0000] [2001]
Oct 28 15:07:34 ip-10-0-0-186 systemd[1]: gunicorn.service: Main process exited,
Oct 28 15:07:34 ip-10-0-0-186 systemd[1]: gunicorn.service: Failed with result '
と、ActiveがFailedでうまく動いておりません、、、、
2018/10/30 23:47、yyy so <djma...@gmail.com>のメール:
--
----------------- http://djangoproject.jp/ -----------------
You received this message because you are subscribed to the Google Groups "django-ja" group.
To post to this group, send email to djan...@googlegroups.com
To unsubscribe from this group, send email to django-ja-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
---
このメールは Google グループのグループ「django-ja」に登録しているユーザーに送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+...@googlegroups.com にメールを送信してください。
その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。