feat: refactor code structure

This commit is contained in:
Steven
2023-02-23 08:22:06 +08:00
parent f77a84a649
commit 0fbbcae872
36 changed files with 768 additions and 936 deletions

View File

@ -3,11 +3,13 @@ tmp_dir = ".air"
[build]
bin = "./.air/corgi"
cmd = "go build -o ./.air/corgi ./bin/server/main.go"
cmd = "go build -o ./.air/corgi ./main.go"
delay = 1000
exclude_dir = [".air", "web", "extension", "build"]
exclude_dir = [".air", "web", "build"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = false
full_bin = ""
send_interrupt = true
kill_delay = 2000

View File

@ -8,6 +8,6 @@ cd "$(dirname "$0")/../"
echo "Start building backend..."
go build -o ./build/corgi ./bin/server/main.go
go build -o ./build/corgi ./main.go
echo "Backend built!"