Compare commits

..

2 commits

Author SHA1 Message Date
Chandler Swift 24c4134dba
Add API link to footer 2023-10-12 22:40:37 -05:00
Chandler Swift 3458476ca4
Add deploy command to Makefile 2023-10-12 22:14:30 -05:00
2 changed files with 9 additions and 1 deletions

View file

@ -1,2 +1,7 @@
minecraft-site: minecraft-site.go index.html go.mod go.sum
go build -tags netgo -ldflags '-extldflags "-static"'
.PHONY: deploy
deploy: minecraft-site
rsync --rsync-path="sudo -u minecraft rsync" minecraft-site zirconium:/home/minecraft/minecraft-site
ssh zirconium sudo systemctl restart minecraft-site.service

View file

@ -55,6 +55,9 @@
{{end}}
</section>
{{end}}
<p class="light">This page maintained by chandlerswift's <a href="https://git.chandlerswift.com/chandlerswift/minecraft-site">minecraft server list</a>.</p>
<p class="light">
This page maintained by chandlerswift's <a href="https://git.chandlerswift.com/chandlerswift/minecraft-site">minecraft server list</a>.
<a href="/data.json">API at /data.json</a>.
</p>
</body>
</html>