Add systemd service for static-deployer
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
686db54336
commit
a928256a4f
|
@ -3,24 +3,22 @@
|
||||||
pkgname="static-deployer"
|
pkgname="static-deployer"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgver=0.0.6.g7067e8f
|
pkgver=0.0.6.g7067e8f
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A simple daemon to deploy static site"
|
pkgdesc="A simple daemon to deploy static site"
|
||||||
url="https://git.leafee98.com/leafee98/static_deployer"
|
url="https://git.leafee98.com/leafee98/static_deployer"
|
||||||
maintainer="Leafee98 <me@leafee98.com>"
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
|
||||||
source=(
|
source=(
|
||||||
"static_deployer::git+https://git.leafee98.com/leafee98/static_deployer.git"
|
"static_deployer::git+https://git.leafee98.com/leafee98/static_deployer.git"
|
||||||
|
"static-deployer.service::materials/static-deployer.service"
|
||||||
)
|
)
|
||||||
|
|
||||||
function pkgver {
|
|
||||||
git -C src/static_deployer describe --tags --long | sed -e 's/^v//; s/-/./g'
|
|
||||||
}
|
|
||||||
|
|
||||||
function pkgver {
|
function pkgver {
|
||||||
git -C "${srcdir}/static_deployer" describe --tags --long | sed 's/^v//;s/-/./g'
|
git -C "${srcdir}/static_deployer" describe --tags --long | sed 's/^v//;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
function package {
|
function package {
|
||||||
install -D "${srcdir}/static_deployer/main.py" "${pkgdir}/usr/bin/static-deployer"
|
install -Dm755 "${srcdir}/static_deployer/main.py" "${pkgdir}/usr/bin/static-deployer"
|
||||||
|
install -Dm644 "${srcdir}/static-deployer.service" "${pkgdir}/usr/lib/systemd/system/static-deployer.service"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A simple daemon to deploy static site
|
||||||
|
After=network.target apache2.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# User=www-data
|
||||||
|
# Group=www-data
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/static-deployer --archive-dir /srv/www/blog/archive --extract-dir /srv/www/blog/extract --symlink-path /srv/www/blog/serve --port 8084
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue