refactor: move website
service from website repo to server_config
This commit is contained in:
parent
7c452507fe
commit
e0f7c68e3c
|
@ -3,7 +3,7 @@ cd /srv/www
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|
||||||
# Setup website service
|
# Setup website service
|
||||||
cp /srv/www/website.service /etc/systemd/system
|
cp ./website/systemd/website.service /etc/systemd/system
|
||||||
|
|
||||||
# Start website
|
# Start website
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
17
website/systemd/website.service
Normal file
17
website/systemd/website.service
Normal 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
|
Loading…
Reference in a new issue