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
16 lines
567 B
Desktop File
16 lines
567 B
Desktop File
# 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
|