brief-traffic-36675
05/18/2023, 9:59 PMPORT
, this is automatically used by both the front-end
and backend
and there is a conflict?fresh-football-47124
brief-traffic-36675
05/18/2023, 10:02 PMfront-end
listen/expect for another env var?fresh-football-47124
brief-traffic-36675
05/18/2023, 10:11 PMkubernetes
with these env vars
NODE_ENV: production
PORT: 20000
APP_ORIGIN: <https://localhost:3000>
APP_HOST: <http://localhost:20000>
it fails with
"err":{"type":"Error","message":"listen EADDRINUSE: address already in use :::20000",
fresh-football-47124
brief-traffic-36675
05/18/2023, 10:11 PMNODE_ENV: production
PORT: 3100
APP_ORIGIN: <https://localhost:3000>
API_HOST: <http://localhost:3100>
but getting the same...
"err":{"type":"Error","message":"listen EADDRINUSE: address already in use :::3100"
fresh-football-47124
sudo lsof -i :3100
brief-traffic-36675
05/18/2023, 10:18 PMk exec -it growthbook-api-web-65cc97ccd4-q2gv2 -- "bash -c 'lsof -i :3100'"
E0519 01:18:08.430815 82577 v3.go:79] EOF
error: Internal error occurred: error executing command in container: failed to exec in container: container is in CONTAINER_EXITED state