apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Home Page:https://answer.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Init command with custom port

bestony opened this issue · comments

Is your feature request related to a problem? Please describe

Yes, If i run nginx local, i can't init answer with default config

Describe the solution you'd like

user can init answer with custom prompt (not just data dir)

Describe alternatives you've considered

  • add new flag for custom port
  • add feature only init file. don't try to start answer, let people change config ,and the start by manual.
  • add feature to load a full config file.

You could use something like yq to change it to an alternate port:

yq -i '.server.http.addr="0.0.0.0:3200"' ./answer-data/conf/config.yaml

Then start answer:

./answer run -C ./answer-data/

@bestony At answer init, you can use environment variables to specify arguments directly. FYI: https://answer.apache.org/docs/env