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!"