operation log
[Resolving an issue where dark cluster extraction doesn't look the same when tried with smaller data of 50 cases - Issue #96 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou- ai/issues/96]
$ make client-dev$ docker compose up -d api:
⨯ [TypeError: fetch failed] {
digest: '691811448',
[cause]: [Error: getaddrinfo ENOTFOUND api] {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'api'
}
}
/.env
# Path to access the python API from the server side of next.js. No need to change
API_BASEPATH=http://api:8000
- Uh-oh.
- I changed it to localhost, but no luck.
- Ah, well, that's what happens when you change environment variables.
- `$ docker compose up -d api --build`
- It does not seem to be the case that
- <img src='https://scrapbox.io/api/pages/nishio-en/nishio/icon' alt='nishio.icon' height="19.5"/>I couldn't figure out how to put any data I wanted on the dummy server, so I'm docker compose up -d api and make client-dev-server.
- <img src='https://scrapbox.io/api/pages/nishio-en/devin/icon' alt='devin.icon' height="19.5"/>I see, in that case the API_BASEPATH and NEXT_PUBLIC_API_BASEPATH in the .env file should be set to [http://api:8000.](http://api:8000.) The Docker service name is api, so use api instead of localhost.
- Okay.
client/.env
#NEXT_PUBLIC_API_BASEPATH="http://localhost:8000"
NEXT_PUBLIC_API_BASEPATH=http://localhost:8000
NEXT_PUBLIC_PUBLIC_API_KEY=public
.env
# Path to access the python API from the client side of next.js. No need to change
NEXT_PUBLIC_API_BASEPATH=http://localhost:8000
# Path to access the python API from the server side of next.js. No need to change
API_BASEPATH=http://api:8000
$ docker compose up -d api --build
$ make client-dev-server
This worked fine.
#NEXT_PUBLIC_API_BASEPATH="http://localhost:8000"
It's done.
I don't know how to format the source code...
Planned but not yet started
[Enable inclusion of reports on hand when deploying to Azure - Issue #216 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou-ai/ issues/216]
[Putting Azure deployment update work into a Makefile - Issue #214 - digitaldemocracy2030/kouchou-ai https://github.com/digitaldemocracy2030/kouchou-ai/issues/ 214]
Allow direct input of cluster count changes - Issue #222 - digitaldemocracy2030/kouchou-ai✅
Report duplication and reuse functionality - Issue #19 - digitaldemocracy2030/kouchou-ai
Diary 2025-04-02 ← Diary 2025-04-03 → Diary 2025-04-04 100 days ago Diary 2024-12-24. 1 year ago Diary 2024-04-03.
This page is auto-translated from /nishio/日記2025-04-03 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.