Upgrading on Linux

Perform the following tasks to upgrade P4 Plan Web on Linux.

1. If either the P4 Plan Web API or P4 Plan Web Integrations services are running, stop them before proceeding.

2. Download the latest version of P4 Plan Web.

3. Unzip all files in the location where P4 Plan Web is installed. Overwrite any existing files.

4. Copy client files to web root directory, e.g. /usr/share/nginx/html

Copy
cp -r client/dist/* /usr/share/nginx/html/
cp -r integrations/helix_core /usr/share/nginx/html/

5. Update node dependencies:

Copy
cd P4PlanAPI
npm ci --omit=dev --no-audit
cd ..

6. Update integration dependencies:

Copy
cd integrations
npm ci --omit=dev --no-audit
cd ..

7. Start P4 Plan API and integrations by running ./start.sh

If you were previously running the API as a service, you will need to start it as a service. For more information, see the P4 Plan API documentation.

8. Open the web client in a browser and use your login details to ensure that everything works.

You can also run the following (or a corresponding wget invocation):

Copy
curl https://localhost/api/healthcheck