local start backend ui always loading
Closed this issue · 10 comments
Describe the bug
code is latest
go mod download
go run cmd/answer/main.go init -C ./answer-data
[SUCCESS] answer installation service will run at: http://localhost:80/install/
but result is loading,not config UI
- Device: [e.g. Desktop, Mobile]
- OS: [e.g. macOS]
- Browser and version: [e.g. Chrome, Safari]
- Version: [e.g. v1.2.0]
You can refer to the documentation for installation: https://answer.apache.org/docs/installation
@chenyong0923 Maybe you need to compile frontend first. make ui
@chenyong0923 Maybe you need to compile frontend first.
make ui
It's ok for me,but request redirect to 50x,how to config base_url ?
https://github.com/apache/incubator-answer/blob/main/ui/.env.development
This is the path that the client configures for the server. Not work
You need to configure it first to ensure that the UI has access to the correct backend service API.
You need to configure it first to ensure that the UI has access to the correct backend service API.
Not work,I'll outline the steps involved
- make ui
- cd ui, pnpm I & pnpm start (this REACT_APP_API_URL used default http://10.0.20.84:8080 or used http://127.0.0.1)
- go run cmd/answer/main.go init -C ./answer-data
- request http://localhost:80/install in browser (this is backend service)
You need to configure it first to ensure that the UI has access to the correct backend service API.
The problem is solved. After the server starts, it should access the front-end started service and enter the configuration page through the /install route, rather than access the service directly on the server side
Thanks