CTAO Science Portal: static Astro site with git-based CMS (Sveltia + Gitea)
Portal code only; editorial content lives in the ctao/content repo on the demo machine's Gitea and is overlaid at build time (see README.md and deploy/README.md). Live demo: https://astro.isl-dev.grid.cyfronet.pl
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# CTAO portal demo — rebuild-on-new-commit worker (fired by the .timer).
|
||||
# Install: copy to ~/.config/systemd/user/ → systemctl --user daemon-reload.
|
||||
# Type=oneshot + timer means runs can never overlap: the timer will not
|
||||
# activate a service that is still running.
|
||||
|
||||
[Unit]
|
||||
Description=CTAO portal demo — rebuild if the code or content repo has new commits
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/ctao-portal-demo/bin/build.sh
|
||||
# Polite neighbour on the shared VM:
|
||||
Nice=10
|
||||
# First-ever npm ci on 2 vCPU can be slow; normal rebuilds are seconds.
|
||||
TimeoutStartSec=900
|
||||
Reference in New Issue
Block a user