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
- Log in to Bamboo.
- Go to the “Build Dashboard” page and scroll down until you find
ux-pattern-library
, in the “Project” column. - Click on
uxp - deploy staging
, in the “Plan” column. - Click the “Run” button in the top right corner of the screen, then click “Run plan”.
- 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
- Log in to Bamboo.
- Go to the “Build Dashboard” page and scroll down until you find
ux-pattern-library
, in the “Project” column. - Click on
uxp - deploy prod
, in the “Plan” column. - Click the “Run” button in the top right corner of the screen, then click “Run plan”.
- 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
- Run
npm run build-staging
. This will re-generate thepublic
directory using the staging configuration settings. - Deploy the contents of the
public
directory to your server’s web root.
Production
- Run
npm run build-production
. This will re-generate thepublic
directory using the production configuration settings. - Deploy the contents of the
public
directory to your server’s web root.