Select to view content in your preferred language

Is it possible to develop in online environment and deploy in offline?

505
6
05-28-2025 09:01 PM
baohuachu7
Emerging Contributor

For the development edition,it is not easy to start it up in offline environment.   Can develop in online environment and deploy it in offline environment?   If yes, what's the steps to do it?(deploy js SDK, calcite,replace  webmap with production webmap......)

0 Kudos
6 Replies
Allen_Zhang
Frequent Contributor

Hi @baohuachu7, I assume the most challenging aspect of working in an offline environment is primarily the `npm install` process.

In my experience, I typically run `npm install` in an online environment to ensure everything starts correctly, and then I copy the entire project folder into the offline environment.

For ongoing development needs, you might consider deploying a private npm server, such as Verdaccio or Nexus, within the offline environment.

I believe that transporting the app from online to offline may be difficult due to the associated resources and assets, such as images, icons, maps, layers, and other data.

Let's see if anyone else has some tips or tricks to share in this post! 🙂

0 Kudos
baohuachu7
Emerging Contributor

Hi @Allen_Zhang ,My idea is in online environment ,down load the code, and then to replace only the resources  of maps, layers. But I have not tried it. Not find place to modify "web map id" or "layer url ".

 

0 Kudos
TimWestern
MVP

When you run it in offline, are you using the editor in EXB offline to make the changes? Or are you trying to do a copy/pasta run on a json file?

0 Kudos
Wei_Ying
Esri Regular Contributor

@baohuachu7 are you trying to develop app with developer edition connecting in online environment, and then want to download the app, deploy and run it in offline environment? 

0 Kudos
baohuachu7
Emerging Contributor

@Wei_Ying yes.

 

0 Kudos
Wei_Ying
Esri Regular Contributor

Yes it should be possible as long as you replace the data to offline as well. You can search the the datasource in config.json file of the downloaded app and replace the data there. 

0 Kudos