Add build script & ignore files

This commit is contained in:
Moritz Marquardt 2021-11-20 21:43:12 +01:00
parent eae4513b96
commit ce802734d4
No known key found for this signature in database
GPG Key ID: D5788327BEE388B6
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.idea/
*.iml
key-database.pogreb/
acme-account.json
build/

View File

@ -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 ./