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/ .idea/
*.iml *.iml
key-database.pogreb/ key-database.pogreb/
acme-account.json
build/

View file

@ -7,3 +7,6 @@ dev:
export RAW_DOMAIN=raw.localhost.mock.directory export RAW_DOMAIN=raw.localhost.mock.directory
export PORT=4430 export PORT=4430
go run . go run .
build:
CGO_ENABLED=0 go build -ldflags '-s -w' -v -o build/codeberg-pages-server ./