EmbedAI icon indicating copy to clipboard operation
EmbedAI copied to clipboard

Change ports

Open angel1st opened this issue 2 years ago • 3 comments

Is there an easy way to change ports inside the code - both client and server? I looked at it, but didn't able to find anything specific. I would like to dockerize both client and server, and make sure ports are inside docker-composer file. Thanks!

angel1st avatar Jul 01 '23 09:07 angel1st

Yes, you can run the app like with custom port:

Replace this: app.run(host="0.0.0.0", debug = False) with this: app.run(host="0.0.0.0", port=3001, debug = False)

And update 5000 to 3001 in client side.

nesimtunc avatar Jul 01 '23 12:07 nesimtunc

Thanks @nesimtunc! This will solve server side port configuration. How about client side port config?

angel1st avatar Jul 01 '23 13:07 angel1st

Hi @angel1st I don't know about next.js but here's what I found: https://nextjs.org/docs/pages/building-your-application/upgrading/version-11#port-is-now-supported-for-next-dev-and-next-start

nesimtunc avatar Jul 05 '23 01:07 nesimtunc