From ce802734d45f7e2dd2f9f4282df4015d59b3d469 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Sat, 20 Nov 2021 21:43:12 +0100 Subject: [PATCH] Add build script & ignore files --- .gitignore | 2 ++ Justfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 983b8b9..cb42378 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .idea/ *.iml key-database.pogreb/ +acme-account.json +build/ diff --git a/Justfile b/Justfile index 1fbbba3..a5feb7a 100644 --- a/Justfile +++ b/Justfile @@ -7,3 +7,6 @@ dev: export RAW_DOMAIN=raw.localhost.mock.directory export PORT=4430 go run . + +build: + CGO_ENABLED=0 go build -ldflags '-s -w' -v -o build/codeberg-pages-server ./