Уведомления

Группа в Telegram: @pythonsu

#1 Янв. 24, 2018 23:28:17

InPython
От:
Зарегистрирован: 2011-01-31
Сообщения: 69
Репутация: +  0  -
Профиль   Отправить e-mail  

Не стартует gunicorn как демон

 systemctl status gunicorn
Сам демон
 [Unit]                                                                                                                                                      
  2 Description=gunicorn daemon
  3 After=network.target
  4  
  5 [Service]
  6 User=root
  7 Group=www-data
  8 WorkingDirectory=/root/projects/chat
  9 ExecStart=/root/projects/chat/chat_env/bin/gunicorn --workers 3 --bind unix:/root/projects/chat/chat.sock chat.wsgi:application
 10  
 11 [Install]
 12 WantedBy=multi-user.target
 13  
И ошибка
 Jan 24 21:16:02 localhost gunicorn[4856]:   File "/root/projects/chat/chat_env/lib/python3.5/site-packages/gunicorn/util.py", line 352, in import_app
Jan 24 21:16:02 localhost gunicorn[4856]:     __import__(module)
Jan 24 21:16:02 localhost gunicorn[4856]: ImportError: No module named 'chat.wsgi'
 tree -L 3
из папки /root/projects/chat

 ├── chat
  3 │   ├── chat
  4 │   │   ├── __init__.py
  5 │   │   ├── __pycache__
  6 │   │   ├── settings.py
  7 │   │   ├── urls.py
  8 │   │   └── wsgi.py
  9 │   ├── manage.py
 10 │   └── static
 11 │       └── admin
 12 ├── chat_env
 13 │   ├── bin
 14 │   │   ├── activate
 15 │   │   ├── activate.csh
 16 │   │   ├── activate.fish
 17 │   │   ├── activate_this.py
 18 │   │   ├── django-admin
 19 │   │   ├── django-admin.py
 20 │   │   ├── easy_install
 21 │   │   ├── easy_install-3.5
 22 │   │   ├── gunicorn
 23 │   │   ├── gunicorn_paster
 24 │   │   ├── pip
 25 │   │   ├── pip3
 26 │   │   ├── pip3.5
 27 │   │   ├── __pycache__
 28 │   │   ├── python -> python3
 29 │   │   ├── python3
 30 │   │   ├── python3.5 -> python3
 31 │   │   ├── python-config
 32 │   │   └── wheel
 33 │   ├── include
 34 │   │   └── python3.5m -> /usr/include/python3.5m
 35 │   ├── lib
 36 │   │   └── python3.5
 37 │   └── pip-selfcheck.json
Где я туплю?



Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version