From 62657f7f4ec442b6ad30d335699caf7cf2d8c1a4 Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 27 Aug 2022 08:57:05 +0800 Subject: [PATCH] chore: update build folder --- .gitignore | 2 +- scripts/.air.toml | 2 +- scripts/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f4838425..48954faa 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,6 @@ tmp web/dist # build folder -memos-build +build .DS_Store \ No newline at end of file diff --git a/scripts/.air.toml b/scripts/.air.toml index 239b32cf..d742c75a 100644 --- a/scripts/.air.toml +++ b/scripts/.air.toml @@ -5,7 +5,7 @@ tmp_dir = ".air" bin = "./.air/memos" cmd = "go build -o ./.air/memos ./bin/server/main.go" delay = 1000 - exclude_dir = [".air", "web"] + exclude_dir = [".air", "web", "build"] exclude_file = [] exclude_regex = [] exclude_unchanged = false diff --git a/scripts/build.sh b/scripts/build.sh index 7aa43dd3..fd34f219 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -8,6 +8,6 @@ cd "$(dirname "$0")/../" echo "Start building backend..." -go build -o ./memos-build/memos ./bin/server/main.go +go build -o ./build/memos ./bin/server/main.go echo "Backend built!"