+ Flower systemd service
This commit is contained in:
parent
1ea70513b0
commit
4b59df5555
20
_deploy/flower.service
Normal file
20
_deploy/flower.service
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Flower - Celery monitoring tool
|
||||||
|
After=network.target
|
||||||
|
Requires=celery-stage.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=poizon
|
||||||
|
Group=poizon
|
||||||
|
EnvironmentFile=/etc/default/celery-stage
|
||||||
|
EnvironmentFile=/var/www/poizonstore-stage/.env
|
||||||
|
WorkingDirectory=/var/www/poizonstore-stage
|
||||||
|
RuntimeDirectory=celery
|
||||||
|
|
||||||
|
ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} --workdir=${APP_HOME} flower --port=5556 \
|
||||||
|
--url_prefix=/flower --basic-auth=admin:meowmeow'
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
@ -47,6 +47,6 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /flower/ {
|
location /flower/ {
|
||||||
proxy_pass http://localhost:5555/flower/;
|
proxy_pass http://localhost:5556/flower/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user