Skip to content

Commit

Permalink
tweak readme for latest version and reverse proxy with path edits
Browse files Browse the repository at this point in the history
  • Loading branch information
tbock committed Jan 21, 2025
1 parent e8288e5 commit 7cb2651
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,24 @@ Clone the repository into client directory for Experience Builder >=1.9

Run `npm install` from inside the cloned repository directory.

Update the widget-webpack-override.js to include the two react jsx lines bellow and look like the following per
https://developers.arcgis.com/experience-builder/guide/override-webpack-config/. This is required for the react-data-grid library.
```
module.exports = function (webpackConfig) {
/**
* If you need to change the widget webpack config, you can change the webpack config here and return the changed config.
*/
'use strict';
webpackConfig.resolve.alias['react/jsx-dev-runtime'] = 'react/jsx-dev-runtime.js';
webpackConfig.resolve.alias['react/jsx-runtime'] = 'react/jsx-runtime.js';
return webpackConfig;
}
```

Upgrading hosted Experience Builder versions:
1. Download and unzip latest experience builder developer edition
2. Pull github repo into client folder
3. Run npm install in both the client and server folders
4. Copy files from previous version into the new one (keep all locations the same)
- server/src/runZipApp.js
- the whole server/public folder
5. Make the above updates to widget-webpack-override.js
6. Add "IS_DE=true" build:dev command in client/package.json
7. Remove existing service
4. Remove existing service
- Stop exp-server
- cd /server
- npm run uninstall-windows-service
8. Rename old installation with _backup
9. Copy new installation from /ArcGISExperienceBuilder into D://R9Web
10. Create new service
5. Rename old installation with _backup
6. Copy new installation from /ArcGISExperienceBuilder into D://R9Web
7. Change server package.json to include path when installing service
- Add `--path=/eb"` to the end of the `npm run install-windows-service` command
8. Create new service
- cd /server
- npm run install-windows-service
11. Build widgets
9. Build widgets
- cd /client
- npm run build:dev
10. Modify client/dist/site/widgets/set-portalurl/dist/runtime/widget.js
- Change the one remaining issue with putting EB behind reverse proxy with path.
- Change the `${window.location.protocol}//${window.location.host}/signininfo` to `${window.location.protocol}//${window.location.host}/eb/signininfo`

0 comments on commit 7cb2651

Please sign in to comment.