Add dev-back for justfile, just for develop backend
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
exec = "bun run dev";
|
exec = "bun run dev";
|
||||||
cwd = "./client";
|
cwd = "./client";
|
||||||
};
|
};
|
||||||
backend.exec = "just dev-back";
|
backend.exec = "just watch-back";
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|||||||
5
justfile
5
justfile
@@ -33,8 +33,11 @@ run-back:
|
|||||||
test-back:
|
test-back:
|
||||||
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} GO_ENV=test go test -C .. ./...
|
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 }}'
|
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:
|
dev:
|
||||||
devenv up --verbose
|
devenv up --verbose
|
||||||
|
|
||||||
|
dev-back:
|
||||||
|
devenv up backend postgres redis meilisearch --verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user