refactor: move website service from website repo to server_config

This commit is contained in:
Julien Oculi 2024-06-06 15:58:35 +02:00
parent 7c452507fe
commit e0f7c68e3c
2 changed files with 18 additions and 1 deletions

View file

@ -3,7 +3,7 @@ cd /srv/www
git pull origin main
# Setup website service
cp /srv/www/website.service /etc/systemd/system
cp ./website/systemd/website.service /etc/systemd/system
# Start website
systemctl daemon-reload

View file

@ -0,0 +1,17 @@
[Unit]
Description=Website Deno 1.1.1 service
Documentation=http://deno.land
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=deno
WorkingDirectory=/srv/www
ExecStartPre=/usr/local/bin/deno task build
Environment=PORT=6060
ExecStart=/usr/local/bin/deno task serve
Restart=on-failure
[Install]
WantedBy=multi-user.target