chore: add air tool for hot reload app

This commit is contained in:
Vadim Aleksandrov 2024-07-15 16:26:49 +03:00
parent d3132478c5
commit 9bcc9d02a0
No known key found for this signature in database
GPG Key ID: 4D3A2E248D54FDAE
2 changed files with 37 additions and 0 deletions

36
app/.air.toml Normal file
View File

@ -0,0 +1,36 @@
root = '.'
tmp_dir = 'bin'
[build]
cmd = 'go build -o bin/app main.go'
bin = './bin/app'
full_bin = ''
args_bin = []
include_ext = ['go']
exclude_dir = ['bin', 'tests']
include_dir = []
exclude_file = []
exclude_regex = ['_test.go']
exclude_unchanged = false
follow_symlink = false
delay = 1000
stop_on_error = true
send_interrupt = false
kill_delay = 0
[color]
main = 'magenta'
watcher = 'cyan'
build = 'yellow'
runner = 'green'
app = ''
[log]
time = false
[misc]
clean_on_exit = true
[screen]
clear_on_rebuild = false

1
app/.gitignore vendored
View File

@ -1 +1,2 @@
tmp-image tmp-image
bin/