Select to view content in your preferred language

Running 2 instances of EB w/ different ports (redirect URLs)

733
2
Jump to solution
03-23-2022 10:58 AM
JohnSasso2
Frequent Contributor

We recently obtained an ArcGIS licensed account, and I have to migrate the web app I developed in EB Developer Ed. on my desktop from the free AGOL developer account to this new account.  The web map itself has already been migrated.

I figure the way I would do that is to run two instances of EB dev ed on my desktop, with the 2nd instance running on a different port.  Eg. if the original runs on TCP ports 3000 & 3001, then have the 2nd instance run on TCP ports 4000 & 4002.  Thus, the redirect URL for the 2d instance is https://localhost:4001/

How do I go about doing this since the Esri docs have no info?  
Or is there an easier way to migrate my web app?

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

You can copy an item from the /server/public/apps/<your-app-id> directory into a matching directory in your second EB instance.

But if you really wanted to run two instances, you can find this in the /server/src/server.js file:

port=commander.port||process.env.EXB_HTTP_PORT||3e3,httpsPort=commander.https_port||process.env.EXB_HTTPS_PORT||3001

 I altered mine to read 4001 and 4002, respectively, and then got this after running npm start.

jcarlson_0-1648061754500.png

 

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

You can copy an item from the /server/public/apps/<your-app-id> directory into a matching directory in your second EB instance.

But if you really wanted to run two instances, you can find this in the /server/src/server.js file:

port=commander.port||process.env.EXB_HTTP_PORT||3e3,httpsPort=commander.https_port||process.env.EXB_HTTPS_PORT||3001

 I altered mine to read 4001 and 4002, respectively, and then got this after running npm start.

jcarlson_0-1648061754500.png

 

- Josh Carlson
Kendall County GIS
0 Kudos
JohnSasso2
Frequent Contributor

@jcarlson thank you for the information!  Your solution worked!

 

--john

0 Kudos