TGAM Pattern Library Documentation

Browse the pattern library website

Deploying the pattern library website

You can deploy the latest pattern library website files to your web server in one of two ways:

Run the Bamboo build plan

If you have access to our Bamboo account, then you can run the build plan:

Staging

  1. Log in to Bamboo.
  2. Go to the “Build Dashboard” page and scroll down until you find ux-pattern-library, in the “Project” column.
  3. Click on uxp - deploy staging, in the “Plan” column.
  4. Click the “Run” button in the top right corner of the screen, then click “Run plan”.
  5. When the build plan has finished, navigate to the staging version of the pattern library website in your browser (you may need to empty your browser’s cache in order to see your changes).

Production

  1. Log in to Bamboo.
  2. Go to the “Build Dashboard” page and scroll down until you find ux-pattern-library, in the “Project” column.
  3. Click on uxp - deploy prod, in the “Plan” column.
  4. Click the “Run” button in the top right corner of the screen, then click “Run plan”.
  5. When the build plan has finished, navigate to the production version of the pattern library website in your browser (you may need to empty your browser’s cache in order to see your changes).

Upload the files via FTP

If you do not have access to our Bamboo account, then you can manually upload the files via FTP:

Staging

  1. Run npm run build-staging. This will re-generate the public directory using the staging configuration settings.
  2. Deploy the contents of the public directory to your server’s web root.

Production

  1. Run npm run build-production. This will re-generate the public directory using the production configuration settings.
  2. Deploy the contents of the public directory to your server’s web root.