Akumina Developer Documentation

Akumina Developer Documentation

  • API
  • Docs
  • Blog

›Site Deployer

Akumina

  • Quickstart

Yo Akumina

  • Yo Akumina
  • Start with Yeoman
  • React
  • Simple template

Widget Builder

  • Widget Builder Structure
  • Akumina Widget Builder
  • Skipping instances
  • Token replacement for widget properties

Widget Development Quickstart

  • Setting up the Project
  • Configuring .env file
  • Configuring - akumina.sitedployer.config.json file
  • Configuring - akumina.config.json file
  • Extras

Widget Info

  • Akumina Widgets Overview
  • Building a New Widget Instance
  • Widget Views
  • Widget Properties
  • Global vs Local widgets (Widget Scoping)
  • Akumina React Widgets
  • Callbacks
  • RenderChildWidgets
  • Vendor Package List

Virtual Page Builder

  • Akumina Virtual Page Builder
  • Using Virtual Page Layouts
  • Creating a Custom Layout

Stream Card Builder

  • Installation
  • Stream Card Builder
  • Custom Cards
  • Activity Comments Config
  • Akumina Activity Stream PUSH Subscription using PowerAutomate to connect to ServiceNow
  • Akumina Activity Stream PUSH Subscription using PowerAutomate to connect to Dynamic 365

Site Deployer

  • Overview
  • Version 6.0
  • List Attribute Deployments
  • NPM Commands
  • SPA Updates and Deploying to multiple sites

Authoring

  • Content Action Event
  • Publish Validation Integration
  • Field Event Integration
  • CK Editor external plugins

Headless

  • Quickstart
  • Headless Teams support
  • Headless Troubleshooting

Modern

  • Overview
  • FAQ
  • Single Page Application
  • Modern Web Part Library
  • Google Analytics for Modern Pages

Site Creator

  • Overview
  • Adding A Custom Site Definition
  • Core Step Classes
  • Custom Site Definition Components
  • Custom Site Definition XML
  • Custom Subsite Definitions
  • Sample Step Code
  • Supported Tokens

Azure DevOps

  • CI/CD using Azure DevOps
  • Setting up a build to deploy a site package
  • Setting up a build to deploy file to App Manager hosted in an app service

Configuration

  • Configuration Context Overview
  • Edit the Redis cache timeout
  • Using a key vault for the client id and client secret

Debugging

  • Debugging in Akumina

Advanced

  • Central Site Collection Support
  • Eventing OOB Digital Workplace Events
  • Working with custom JSX Views
  • Page Indexing

Service Hub

  • Quickstart

Patch Notes

  • Patch Notes

SPA Updates and Deploying to multiple sites

Applies to

Akumina Site Deployer

Overview

The updatespaproperties option will update the Single Page Application (SPA) for one or more sites.

Options

The step is triggered in the options by the keyword updatespaproperties.

Sites

The option uses a list of site present in the path SiteDefinitions\MultiDeployment\inventory.sites.json. The format of the JSON file is below, note how additional sites can be added:

[
    {
        "url": "https://tenant.sharepoint.com/sites/site1"
    },
    {
        "url": "https://tenant.sharepoint.com/sites/site2"
    }
]

SPA properties

To update an SPA property, you must first identify it. The following is a table of the common properties for the SPA:

PropertyValue
AkuminaSiteCollectionURLEx: https://tenant.sharepoint.com/sites/frontend
AkuminaFrameworkVersionEx: 4.8.2007.1514
AkuminaApplicationURLEx: https://appmanager.onakumina.com
AkuminaApplicationQueryKeyThe Akumina Query Key GUID
JSFilesToWaitForEx: digitalworkplace.custom.js
JSFilesToLoad
CSSFilesToLoadEx: digitalworkplace.addon.min.css
IsDeliveryModetrue or false
LoadLocalEnvFiletrue or false
MasterPageViewEx: VirtualMasterPageFoundation.html
EnableAzureADtrue or false
EnableDevelopmentMode": true or false
GraphSubscriptionID
EnablePersonas": true or false
AppManagerSPAppIdInstance ID of the App Manager app
ImplementationVersionEx: 0.2
EnableAutoLoginToAppManager": true or false
HideSiteHeader": true or false
HideCommandBar": true or false
TemplateUrlPrefixEx: https://publiccdn.sharepointonline.com/{tenant}.sharepoint.com/sites/{sitecollection}
RemoveSiteHeaderFromDOM": true or false
ShowLoadingState": true or false
LoadLegacySPJSFromAkumina": true or false
If there is another property you want to update, then inspect the view source for a page with the SPA on it, and look for "Akumina Single Page Application". Note the values in the table above, and locate the property you want to update. Copy the property name, and set its value.

CICD/Batch

When using a CICD pipeline or a batch file, the usage is slightly different from the traditional sitedeployer. The username/password must be set, and any properties you want to update. The following exampe will update the AkuminaApplicationURL, AkuminaFrameworkVersion and GraphSubscriptionID properties for the list of sites in inventory.sites.json:

SET username=
SET passwd=
SET appmgrurl=
SET cdnversion=4.8.2007.1514
SET tenantid=
SET envdir="C:\Akumina\SPAUpdater"

cd tools
Akumina.sitedeployer.exe options updatespaproperties spaproperties "{\"AkuminaApplicationURL\":\"%appmgrurl%\",\"AkuminaFrameworkVersion\":\"%cdnversion%\",\"GraphSubscriptionID\":\"%tenantid%\"}" multideployment true spuser %username% sppassword %passwd% envdir %envdir%


pause

Changing what is passed in will alter what is updated - The following example will update the AkuminaApplicationURL, AkuminaFrameworkVersion and JSFilesToWaitFor properties for the list of sites in inventory.sites.json:

SET username=
SET passwd=
SET appmgrurl=
SET cdnversion=4.8.2007.1514
set jsfilestowait=digitalworkplace.custom.js
SET envdir="C:\Akumina\SPAUpdater"

cd tools
Akumina.sitedeployer.exe options updatespaproperties spaproperties "{\"AkuminaApplicationURL\":\"%appmgrurl%\",\"AkuminaFrameworkVersion\":\"%cdnversion%\",\"JSFilesToWaitFor\":\"%jsfilestowait%\"}" multideployment true spuser %username% sppassword %passwd% envdir %envdir%


pause
← NPM CommandsContent Action Event →
Akumina Developer Documentation
Docs
Akumina Framework 5.0Akumina Widget BuilderAkumina Yeoman GeneratorSite Deployer
Community
Akumina Community Site
More
GitHubStar
Copyright © 2024 Akumina