Select to view content in your preferred language

Running Experience Builder Server on Different Ports

681
3
Jump to solution
03-31-2023 10:16 AM
Gurunara
Occasional Contributor

Is it possible to run the experience builder server on different ports, by specifying different values for the port and https port..?

0 Kudos
1 Solution

Accepted Solutions
Gurunara
Occasional Contributor

In server/package.json, modify scripts/start to:
"cross-env EXB_HTTP_PORT=xxxx EXB_HTTPS_PORT=xxxx NODE_ENV=production node src/server"

View solution in original post

0 Kudos
3 Replies
Gurunara
Occasional Contributor

In server/package.json, modify scripts/start to:
"cross-env EXB_HTTP_PORT=xxxx EXB_HTTPS_PORT=xxxx NODE_ENV=production node src/server"

0 Kudos
MichaelLev
Regular Contributor

I have not succeeded by Gurunara suggestion, but I succeeded by following the tip in ArcGIS Experience Builder install  in mid-page: 

In the Portal App for EXB, add url with the <client-port-number> 

In server folder, do: npm start -- --port <server-port-number> --https_port <client-port-number>

and in client folder, just do: npm start

In the browser, go to: https://localhost:<client-port-number>

0 Kudos
vijaybadugu
Occasional Contributor II

I am getting Error: listen EACCES: permission denied 0.0.0.0:4001

0 Kudos