Skip to content
Snippets Groups Projects
Verified Commit e5dfd53b authored by Kevin Morris's avatar Kevin Morris
Browse files

examples: poetry-driven git scripts & aurweb service


This introduces examples of a gunicorn systemd service in
addition to git script wrappers that can be used for poetry
virtualenv-driven installations.

Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 290ef1a2
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Wrapper script used to call aurweb-git-update externally when
# utilizing an app-based virtualenv.
aurweb_dir="$HOME"
cd $aurweb_dir
exec poetry run aurweb-git-auth "$@"
#!/bin/bash
# Wrapper script used to call aurweb-git-update externally when
# utilizing an app-based virtualenv.
aurweb_dir="$HOME"
cd $aurweb_dir
exec poetry run aurweb-git-serve "$@"
#!/bin/bash
# Wrapper script used to call aurweb-git-update externally when
# utilizing an app-based virtualenv.
aurweb_dir="$HOME"
cd $aurweb_dir
exec poetry run aurweb-git-update "$@"
[Unit]
Description=aurweb asgi server
[Description]
User=aur
WorkingDirectory=/srv/http/aurweb
ExecStart=/usr/bin/poetry run gunicorn \
--log-config /srv/http/aurweb/logging.conf \
--bind '0.0.0.0:8000' \
--forwarded-allow-ips '*' \
--workers 4 \
-k uvicorn.workers.UvicornWorker \
aurweb.asgi:app
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment