How to run on remote server? #1094
Replies: 3 comments
-
Hello @bpawel-bclub you can update the docker--compose.yml to reflect these chances !!! Alternatively, you can run |
Beta Was this translation helpful? Give feedback.
-
It should be like this: NEXT_PUBLIC_BACKEND_URL="http://your_server_ip:8000" |
Beta Was this translation helpful? Give feedback.
-
Thank you! I managed to make it work, though only in development (production didn't work), with the following:
and the following changes in /next/.env
and in /next/Dockerfile:
|
Beta Was this translation helpful? Give feedback.
-
I am trying to run it on my remote server that already has some ports used by other docker containers. I have tried changing ports from 3000 to something else, and also then tried the same with 8080, 8000.... I have also amended localhost to the IP of my server, but I still can't make it work. It starts ok and then announces that the fronted should be available on localhost:3000.
I tried to ignore it and go to my server ip:new_port but it doesn't work.
Firewall is also open in case anyone asks :).
I would appreciate any advice! Thank you
Beta Was this translation helpful? Give feedback.
All reactions