Long:`Eris-DB serve starts an eris-db node with client API enabled by default.
Long:`Eris-DB serve starts an eris-db node with client API enabled by default.
The Eris-DB node is modularly configured for the consensus engine and application
The Eris-DB node is modularly configured for the consensus engine and application
manager. The client API can be disabled.`,
manager. The client API can be disabled.`,
Example:`$ eris-db serve -- will start the Eris-DB node based on the configuration file in the current working directory,
Example:`$ eris-db serve -- will start the Eris-DB node based on the configuration file in the current working directory`,
$ eris-db serve myChainId --work-dir=/path/to/config -- will start the Eris-DB node based on the configuration file provided and assert the chain id matches.`,
Run:func(cmd*cobra.Command,args[]string){
Run:func(cmd*cobra.Command,args[]string){
serve()
serve()
},
},
...
@@ -73,5 +72,21 @@ func serve() {
...
@@ -73,5 +72,21 @@ func serve() {
funcdefaultWorkDir()string{
funcdefaultWorkDir()string{
// if ERIS_DB_WORKDIR environment variable is not set, keep do.WorkDir empty
// if ERIS_DB_WORKDIR environment variable is not set, keep do.WorkDir empty