Add README & deployment examples

This commit is contained in:
Wancat
2022-10-19 11:09:35 +08:00
parent 6e69f90b4e
commit 2449e9b96a
6 changed files with 95 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ func executeScript(w io.Writer, name string) (err error) {
if !ok {
return fmt.Errorf("%s script not found", name)
}
cmd := exec.Command("ledger", append([]string{"--init-file", LEDGER_INIT}, script...)...)
cmd := exec.Command("ledger", append([]string{"--init-file", LEDGER_INIT, "--file", LEDGER_FILE}, script...)...)
cmd.Dir = WORKING_DIR
cmd.Stdout = w
cmd.Stderr = w