Add dev-back for justfile, just for develop backend

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-20 15:26:56 +08:00
parent 087cd4ee51
commit f0cca0cda4
2 changed files with 5 additions and 2 deletions

View File

@@ -33,8 +33,11 @@ run-back:
test-back:
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} GO_ENV=test go test -C .. ./...
dev-back: clean
watch-back: clean
watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'go build -o {{ join(output_dir, "nixcn-cms") }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ exec_path }}'
dev:
devenv up --verbose
dev-back:
devenv up backend postgres redis meilisearch --verbose