Update pkgbuild and nginx to serve static
This commit is contained in:
parent
4157e20376
commit
ab35d774dc
2 changed files with 9 additions and 0 deletions
5
PKGBUILD
5
PKGBUILD
|
@ -24,7 +24,12 @@ package() {
|
|||
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
||||
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
||||
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf
|
||||
install -dm644 "${pkgdir}"/srv/${pkgname}
|
||||
|
||||
cd ${pkgname}/${pkgname}
|
||||
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
|
||||
|
||||
cd "${pkgdir}/usr/share/webapps/${pkgname}"
|
||||
python manage.py migrate
|
||||
python manage.py collectstatic
|
||||
}
|
||||
|
|
|
@ -8,4 +8,8 @@ server {
|
|||
|
||||
proxy_pass http://unix:/run/nummi/nummi.socket;
|
||||
}
|
||||
|
||||
location /static {
|
||||
alias /srv/nummi;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue