From 93eeef0131b1806cd9651ddeab4ba113fdb8c28a Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Sun, 28 Feb 2021 20:31:49 +0000 Subject: [PATCH] update running --- makefile | 3 +++ readme.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index adf7239..3af0deb 100644 --- a/makefile +++ b/makefile @@ -31,3 +31,6 @@ build_windows: go run bin/generate_versioninfo.go -version "$(VERSION)" -outfile src/platform/versioninfo.rc windres -i src/platform/versioninfo.rc -O coff -o src/platform/versioninfo.syso go build -tags "sqlite_foreign_keys release windows" -ldflags="$(GO_LDFLAGS) -H windowsgui" -o _output/windows/yarr.exe main.go + +serve: + go run -tags "sqlite_foreign_keys" src/main.go diff --git a/readme.md b/readme.md index 9934c72..6bab10c 100644 --- a/readme.md +++ b/readme.md @@ -23,7 +23,7 @@ Then run one of the corresponding commands: make build_windows # -> _output/windows/yarr.exe # ... or start a dev server locally - go run main.go # starts a server at http://localhost:7070 + make serve # starts a server at http://localhost:7070 # ... or build a docker image docker build -t yarr .