Closed kuchaguangjie closed 2 years ago
dealbot controller -h
to see themThe config file is one way, env vars are another, or passing directly in on command line are a third.
@willscott Thanks.
Regarding first issue, you mean I should use -c
instead of --configpath
?
I've tried 4 commands:
dealbot controller --configpath ~/dealbot.toml
dealbot --configpath ~/dealbot.toml controller
dealbot controller -c ~/dealbot.toml
dealbot -c ~/dealbot.toml controller
Only the last one can recognize the -c
param
About the second issue, you mean all flags from https://github.com/filecoin-project/dealbot/blob/main/commands/flags.go#L229 are required?
Is there a working dealbot .toml
example? Or a working env file example, or a command line example ?
Thanks.
either
dealbot -c ~/dealbot.toml controller
or
dealbot -configpath ~/dealbot.toml controller
we run the controller through a kubernetes / helm setup. The env var setup we use is here
@willscott Thanks, I've check the source code & tried, and get below result:
Regarding the first issue, it seems only -c
and --config
works.
Regarding the second issue, toml
is not supported anymore, though yaml
is supported.
And I succeed to start controller via purely command line flags without config file.
So, the README
file is quite out of date, maybe it need an update.
I've installed dealbot (built with git tag
v0.0.40
). and downloadeddealbot-example.toml
, and renamed to dealbot.tom, and changed its data dirs, and created those dirs.Then when run according to README file:
dealbot controller --configpath ~/dealbot.toml
ordealbot daemon --configpath dealbot.toml
both and got error:
Then checked
dealbot -h
for help, and tried:dealbot -c ~/dealbot.toml controller
and got error:
content of
dealbot.toml
:So, is the
README.md
out of date? Any help? Thanks.