Run as a Windows service
Rather than clicking the startup.bat file to start ArcGIS Web AppBuilder, you can run it as a Windows service.
Run as a Windows service without a proxy
To run Web AppBuilder as a Windows service without a proxy, complete the following steps:
- Install Node.js on your Windows platform.
- Run the command prompt as administrator.
- Change the directory (cd) to the /server directory of the Web AppBuilder installation.
- Run the command npm run-script install-windows-service.
- Start the ArcGIS Web AppBuilder service from the Services window.
- To remove the ArcGIS Web AppBuilder service, run the command npm run-script uninstall-windows-service.
Run as a Windows service with a proxy
Further, you can run Web AppBuilder as a Windows service with a proxy by completing the following steps:
- Install Node.js on your Windows platform.
- Open the /~server/package.json file.
- Replace the line "start": "node server.js" with "start": "node server.js -proxy=<http://your proxy>" and save the file.
- Run the command prompt as administrator.
- Change the directory (cd) to the /server directory of the Web AppBuilder installation.
- Run the command npm run-script install-windows-service.
- Start the ArcGIS Web AppBuilder service from the Services window.
- To remove the ArcGIS Web AppBuilder service, run the command npm run-script uninstall-windows-service.