Server won't change port from 3000 to 50008
hi everyone!
I tried a self hosted approach (no docker!) and wanted to switch ports from 3000 and 3001 to 50008 and 50009 … yet, whenever I start the server it tells me, that port 3000 is already in use. yeah … that's why I want to switch to port 50008 instead 😉
Was anyone successful running twenty server on any other port than 3000?
Thanks for your replies in advance!
Rico
8 Replies
I guess you are using Docker?
If so, you also need to adjust the settings on your
Can you share yours?
Hi @Antonio Pinto I'm not using docker … I used git clone and used npx to start server, frontend and worker.
Here's the shell output:
Ok!
Checking https://twenty.com/developers/section/self-hosting/setup#setup-environment-variables
You might need:
Hi @Antonio Pinto thanks for your reply.
I do have that. Let me copy my .env file for reference as well:
Front
I would assume that this is all correct, isn't it?
I assume you have SITE_HOST and not VISTE_HOST
Maybe try to clear the nx cache?
The places with PORTS are:
it's
VITE_HOST
according to .env.example file: https://github.com/twentyhq/twenty/blob/main/packages/twenty-front/.env.example … should it be SITE_HOST
instead?!
nx has a cache? that's a good hint. I'll check that and come back here!
That didn't help 😕 it still wants to use port 3000 … I really don't understand it 😕 Perhaps there's some other idea?!Thats quite strange.
I assume you tried a fresh install?
yepp … I'm glad that it doesn't make sense to you as well 😄 I thought I did oversee something. Do you know someone else who might have another idea?