From 9cdee244f81d53a5606b55492dee710c69452b14 Mon Sep 17 00:00:00 2001 From: dominic Date: Thu, 24 Apr 2025 22:28:01 -0400 Subject: [PATCH] add build and deploy to make file --- .gitignore | 1 + Makefile | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 3b99894..4827b9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ internal/database/comfychan.db **/*_templ.go tmp +out web/static/media/posts/ web/static/media/posts/ diff --git a/Makefile b/Makefile index c038ea8..1481b8a 100644 --- a/Makefile +++ b/Makefile @@ -21,3 +21,10 @@ db/seed/f: img/clear: rm -rf ./web/static/media/posts || true + +build: + go build -o ./out/comfychan ./web + +deploy: + sudo cp ./out/comfychan /srv/comfychan/ + sudo chown root:root /srv/comfychan/comfychan