aurganize-backend/backend/.air.toml

95 lines
2.1 KiB
TOML

# ============================================================================
# AIR CONFIGURATION - HOT RELOAD FOR GO
# ============================================================================
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
# Array of commands to run before each build
pre_cmd = []
# Just plain old shell command
cmd = "go build -o ./tmp/main.exe ./cmd/api"
# Binary file yields from `cmd`
bin = "tmp/main.exe"
# Customize binary, can setup environment variables when run your app
# full_bin = "tmp\\main.exe"
# Watch these filename extensions
include_ext = ["go", "tpl", "tmpl", "html"]
# Ignore these filename extensions or directories
exclude_dir = ["assets", "tmp", "vendor", "testdata", "migrations"]
# Watch these directories if you specified
include_dir = []
# Exclude files
exclude_file = []
# Exclude specific regular expressions
exclude_regex = ["_test\\.go"]
# Exclude unchanged files
exclude_unchanged = false
# Follow symbolic links
follow_symlink = false
# This log file places in your tmp_dir
log = "build-errors.log"
# Poll for file changes instead of using fsnotify (useful for Docker)
poll = false
# Poll interval (ms)
poll_interval = 0
# It's not necessary to trigger build each time file changes if it's too frequent
delay = 1000 # ms
# Stop running old binary when build errors occur
stop_on_error = false
# Send Interrupt signal before killing process (useful for graceful shutdown)
send_interrupt = true
# Delay after sending Interrupt signal
kill_delay = 1000 # ms
# Add additional arguments when running binary
args_bin = []
[log]
# Show log time
time = true
# Only show main log (silences the watcher, build, runner)
main_only = false
[color]
# Customize each part's color
main = "magenta"
watcher = "cyan"
build = "yellow"
runner = "green"
[misc]
# Delete tmp directory on exit
clean_on_exit = true
[screen]
# Clear screen on rebuild
clear_on_rebuild = true
# Enable or disable keep screen scrolling
keep_scroll = true