Skip to content

Commit

Permalink
🚬
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo Arima committed Sep 15, 2024
1 parent 9845f91 commit a9e89da
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ root = "."
testdata_dir = "testdata"
bin_dir = "bin"

[env]
PORT = "8080"
MARK1_CONFIG_PATH="etc/main.yaml"

[build]
args_bin = []
bin = "./bin/server"
cmd = "dlv debug --headless --listen=:8080 --log --api-version=2 cmd/server/main.go"
cmd = "dlv debug --headless --listen=:8080 --log --api-version=2 --output=debug/__debug_bin cmd/server/main.go"
after = "rm -f debug/__debug_bin*"
delay = 1000
exclude_dir = ["assets", "bin", "vendor", "testdata"]
exclude_file = []
Expand All @@ -17,7 +22,6 @@ bin_dir = "bin"
include_ext = ["go", "tpl", "tmpl", "html"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
etc/main.yaml
etc/.mark1
bin/
__debug_*
__debug_*
debug/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ update-readme:
go-test:
./test/main.sh test

debug:
debug-server:
dlv connect localhost:8080
1 change: 1 addition & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func main() {
panic(err)
}

//hoge
dbConnector := config.NewDBConnector()
redisConnector := config.NewRedisConnector()

Expand Down

0 comments on commit a9e89da

Please sign in to comment.