Single-page applications
This page describes the procedures for deploying and interacting with single-page applications. The instructions refer to the deployments using S3 as storage and CloudFront for distributing the static app. Deployments are carried out using Bitbucket Pipelines.
Deployment
Deployment can be initiated by pushing to the environment branch (nightly
, staging
and production
, as described here). For instance ,from the develop
branch, a nightly deployment can be initiated by typing this and the staging pipeline will start:
git push origin develop:nightly
TIP: if you get BitBucket errors, you might need to add
--force
The deployment can be monitored in real time from the Bitbucket website (in the Pipelines page of the relevant repository) or using the VS Code extension. What happens behind the scenes is completely described in bitbucket-pipelines.yml
(in the project root).
Configuration
Single-page applications shuold have rather little configuration, mostly dealing with API base URLs. These values can be set using deployment variables in the build
step of the pipeline.