From: Eugene Prokopiev <enp@itx.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: Alexey Shabalin <shaba@altlinux.ru>
Subject: Re: [devel] Упаковка python-приложение
Date: Wed, 30 Nov 2016 10:59:23 +0300
Message-ID: <CANM4Ruhx+_xHsJD_Vn16UEDm2R9fCTO=KED_w-NyTHbrnFOu0A@mail.gmail.com> (raw)
In-Reply-To: <CAEdvWkS3PsE+dMtcO9bHSR+sHhKX_EvsH3HBJSKK6t6kKQ1jLg@mail.gmail.com>
29 ноября 2016 г., 21:45 пользователь Alexey Shabalin
<a.shabalin@gmail.com> написал:
> 8 июля 2016 г., 13:27 пользователь Alexey Shabalin
> <a.shabalin@gmail.com> написал:
>>> Похоже, что опакечивание django-приложений - еще один случай, когда
>>> овчинка выделки не стоит :(
>>
>> мне на память приходят пара пакетов django-приложений:
>> python-module-django-horizon и noc.
>> Посмотри, может что-то поможет.
>
> Я на основе твоего репо переделал пакет.
> Посмотри у меня в git.
> пара вариантов на выбор: apache2+mod_wsgi или nginx+gunicorn
> Я ближайшую неделю проверить не смогу, если проверите и отпишитесь,
> будет здорово.
Попробовал собрать и установить webvirtmgr и webvirtmgr-gunicorn.
Замечания такие:
1) нужно добавить openssl в зависимости, у меня его не оказалось
2) сервис webvirtmgr не рабочий:
# systemctl status webvirtmgr
● webvirtmgr.service - WebVirtMgr Gunicorn Server
Loaded: loaded (/lib/systemd/system/webvirtmgr.service; disabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Ср 2016-11-30 10:38:46 MSK; 4s ago
Process: 1486 ExecStart=/usr/bin/gunicorn --pid
/var/run/webvirtmgr/webvirtmgr.pid --bind
unix:/var/run/webvirtmgr/socket -c /etc/webvirtmgr/gunicorn.conf.py
/usr/share/webvirtmgr/webvirtmgr/wsgi.py (code=exited, status=217
Main PID: 1486 (code=exited, status=217/USER)
Started WebVirtMgr Gunicorn Server.
webvirtmgr.service: Main process exited, code=exited, status=217/USER
webvirtmgr.service: Unit entered failed state.
webvirtmgr.service: Failed with result 'exit-code'.
В моем рабочем рабочий юните запуск выглядит проще:
WorkingDirectory=/home/kvm/webvirtmgr
ExecStart=/usr/bin/gunicorn -b 127.0.0.1 webvirtmgr.wsgi:application
Дальше не смотрел, потому что пока нет практической необходимости, у
меня webvirtmgr работает из домашней директории, а следующей
инсталляции пока не предвидится. Впрочем с тестированием до состояния
"подключились и увидели виртуальные машины" помочь могу.
--
WBR,
Eugene Prokopiev
next prev parent reply other threads:[~2016-11-30 7:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 8:41 Eugene Prokopiev
2016-07-07 9:38 ` Ivan Zakharyaschev
2016-07-07 10:34 ` Eugene Prokopiev
2016-07-07 11:35 ` Ivan Zakharyaschev
2016-07-08 6:43 ` Eugene Prokopiev
2016-07-08 10:20 ` Ivan Zakharyaschev
2016-07-08 10:27 ` Alexey Shabalin
2016-11-29 18:45 ` Alexey Shabalin
2016-11-30 7:59 ` Eugene Prokopiev [this message]
2016-12-08 14:45 ` Alexey Shabalin
2016-12-09 6:57 ` Eugene Prokopiev
2016-12-09 13:17 ` Alexey Shabalin
2016-12-09 13:50 ` Eugene Prokopiev
2016-12-09 14:34 ` Alexey Shabalin
2016-12-10 18:12 ` Eugene Prokopiev
2016-07-07 10:30 ` Антон Мидюков
2016-07-07 10:40 ` Eugene Prokopiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANM4Ruhx+_xHsJD_Vn16UEDm2R9fCTO=KED_w-NyTHbrnFOu0A@mail.gmail.com' \
--to=enp@itx.ru \
--cc=devel@lists.altlinux.org \
--cc=shaba@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git