Skip to content

Conversation

@Mutugiii
Copy link
Member

@Mutugiii Mutugiii commented Jun 10, 2025

Fixes #8760

  • Update the chatapi port to 5400, switching from 5000
  • Update the docker readme file

To test:
First stop the chatapi docker container using

  • docker desktop or
  • docker stop planet-chatapi-1 or docker stop {{id}} if using the planet chatapi container id(docker ps to find it)

Create a .env file in the chatapi with the following env:

  SERVE_PORT=5400
  COUCHDB_HOST=http://localhost:2200
  COUCHDB_USER=username
  COUCHDB_PASS=password

Then (if you don't have node 18 installed run nvm install 18 or fnm install 18):

  cd chatapi
  nvm use 18 // fnm use 18 
  npm run dev

Visit localhost:5400/checkproviders to confirm

image

image

image

@Mutugiii Mutugiii linked an issue Jun 10, 2025 that may be closed by this pull request
@jessewashburn
Copy link
Member

Maybe it's just me, but my Chatapi folder had a .env file, where I had to edit the SERVE_PORT variable or else it still fell back to port 5000. Running normally on 5050 now though.

@Mutugiii
Copy link
Member Author

Maybe it's just me, but my Chatapi folder had a .env file, where I had to edit the SERVE_PORT variable or else it still fell back to port 5000. Running normally on 5050 now though.

Thanks! Added this step to the testing instructions

@Mutugiii
Copy link
Member Author

Mutugiii commented Jun 11, 2025

After discussions, moved from 5050 to 5400

Tested on

  • planet uriur rpi
  • planet uriur clone

Also updated the wiki development instructions to reflect this change: open-learning-exchange/open-learning-exchange.github.io#3626

Copy link
Member

@JunhaoZhou66 JunhaoZhou66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

截屏2025-06-11 下午12 34 57

Now I meet this problem when testing. I am tring to figure out the problem

Copy link
Member

@paulbert paulbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! As a note the gists will need to be updated for production as well as development in the 10 steps to use 5400.

Copy link
Member

@dogi dogi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mutugiii the code is fine but we already have to many production systems
with network config outside

@dogi dogi closed this Jul 1, 2025
@Mutugiii Mutugiii deleted the 8760-update-chatapi-port-number branch August 23, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update chatapi port number

6 participants