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