You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[#4770](https://github.com/ignite/cli/pull/4770) Add `--output-file` flag to `chain serve` command to improve running `chain serve` in the background.
9
12
10
13
### Changes
11
14
12
15
-[#4759](https://github.com/ignite/cli/pull/4759) Remove undocumented RPC address override in services chainer.
13
16
-[#4760](https://github.com/ignite/cli/pull/4760) Bump Cosmos SDK to `v0.53.3`.
14
17
15
-
16
18
### Fixes
17
19
18
20
-[#4757](https://github.com/ignite/cli/pull/4757) Always delete temp folder from open api generation.
Copy file name to clipboardExpand all lines: ignite/cmd/chain_serve.go
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@ package ignitecmd
2
2
3
3
import (
4
4
"context"
5
+
"os"
6
+
"os/signal"
7
+
"syscall"
5
8
6
9
tea "github.com/charmbracelet/bubbletea"
7
10
"github.com/spf13/cobra"
@@ -22,6 +25,7 @@ const (
22
25
flagGenerateClients="generate-clients"
23
26
flagQuitOnFail="quit-on-fail"
24
27
flagResetOnce="reset-once"
28
+
flagOutputFile="output-file"
25
29
)
26
30
27
31
// NewChainServe creates a new serve command to serve a blockchain.
@@ -78,11 +82,16 @@ production, you may want to run "appd start" manually.
78
82
c.Flags().Bool(flagGenerateClients, false, "generate code for the configured clients on reset or source code change")
79
83
c.Flags().Bool(flagQuitOnFail, false, "quit program if the app fails to start")
80
84
c.Flags().StringSlice(flagBuildTags, []string{}, "parameters to build the chain binary")
85
+
c.Flags().StringP(flagOutputFile, "o", "", "output file logging the chain output (no UI, no stdin, listens for SIGTERM, implies --yes) (default: stdout)")
0 commit comments