Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The code for both custom WordPress theme and plugin are hosted on GitHub here: https://github.com/bcgov/wordpress-digimod

WordPress Deployment

WordPress deployment project is a fork of https://github.com/bcgov/wordpress and is available on GitHub here: https://github.com/bcgov/wordpress-deploy-digimod

To deploy WordPress to OpenShift follow these steps:

  1. Follow instructions in openshift/templates/images/readme.md to create base images

  2. To build images run builds manually through OpenShift Web UI or use GitHub actions (untested)

  3. Rename image stream tags to test or prod, whichever is appropriate:

    Code Block
    oc -n c0cce6-tools tag wordpress-mariadb-run:dev wordpress-mariadb-run:test
    oc -n c0cce6-tools tag wordpress-nginx-run:dev wordpress-nginx-run:test
    oc -n c0cce6-tools tag wordpress-wordpress-run:dev wordpress-wordpress-run:test
    oc -n c0cce6-tools tag wordpress-sidecar-run:dev wordpress-sidecar-run:test
  4. Run openshift/templates/site-builder.sh - this will setup config, mariaDB, nginx.

Next.JS

Next.JS is responsible for fetching the content from WordPress through the API, parsing the WordPress HTML into React components and serving resulting HTML to the client. On the client, React.js is responsible for re-hydrating any React components for interactive functionality. If the user disables JavaScript, the site is expected to run a standard website instead of a Single Page Application (SPA). Interactive elements, such as accordions should either work through CSS toggles or be accessible without interactive (for example leaving accordions expanded, or rendered differently).

...