Info
This support article is valid from PWA 0.20.0.
This article describes how to deploy an Intershop Progressive Web Application (PWA) for a demo server in production mode.
The production mode uses browser-side rendering with on-demand server-side pre-rendering (Angular Universal).
For more details about this option, see Intershop Progressive Web App - Deployment Scenarios.
Download the corresponding PWA version from https://github.com/intershop/intershop-pwa/releases.
wget https://github.com/intershop/intershop-pwa/archive/0.27.0.zip
Unzip the file.
unzip 0.27.0.zip
PWA <0.22.0: The directory name must not contain any dots.
Change to the PWA directory.
cd intershop-pwa-0.27.0
Adapt the configuration file src/environments/environment.prod.ts. Set the property icmBaseURL
to the corresponding ICM 7.10 system.
import { ENVIRONMENT_DEFAULTS, Environment } from './environment.model'; export const environment: Environment = { ...ENVIRONMENT_DEFAULTS, production: true, serviceWorker: false, /* INTERSHOP COMMERCE MANAGEMENT REST API CONFIGURATION */ icmBaseURL: 'https://intershoppwa.azurewebsites.net', };
Enabling service workers is not possible without using nginx. The Intershop PWA will not function as intended if you do.
Build a PWA docker image.
docker build -t <pwa_image_name> .
Deploy and start the PWA docker container.
docker run -d -p <port>:4200 --name <container_name> <pwa_image_name>
To enable SSL the parameter -e SSL=1
must be added to the docker run
command and the configuration parameter icmBaseURL
must contain HTTPS
.
docker run -d -p 4200:4200 -e SSL=1 --name pwa pwa_0.27.0
Helpful docker commands for container maintenance
docker stop <container_name|id>
docker start <container_name|id>
docker rm <container_name|id>
docker container ls
docker ps -a -s
docker logs <container_name|id>
To access the PWA, open a web browser with the IP of the server and the configured port - example: https://10.0.56.157:4200
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.