Versions Compared

Key

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

...

Building thiss-js and related packages requires node 12.x and npm 6.x. Install using the appropriate package manager.

Ubuntu 18.04

Code Block
languagebash
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs

Brew (MacOS)

https://formulae.brew.sh/formula/node@12a working docker environment as the build/deploy process runs in a docker container.

Cloning repositories

Prepare your deploy environement.

...

Code Block
languagebash
cd thiss-js && git pull
git checkout <version>
npm install
make clean
make BASE_URL='https://service.seamlessaccess.org/' COMPONENT_URL='https://service.seamlessaccess.org/cta/' MDQ_URL='https://md.seamlessac
cess.org/entities/' PERSISTENCE_URL='https://service.seamlessaccess.org/ps/' SEARCH_URL='https://md.seamlessaccess.org/entities/' STORAGE_DOMAIN='
service.seamlessaccess.org' LOGLEVEL='error' DEFAULT_CONTEXT='seamlessaccess.org' WHITELIST=$WHITELIST TARGET='../origin-service/' build_in_docker deploy
cd ../origin-service
git diff

...

Verify that the changes have taken effect - this may take a while depending on how quickly the CDN picks up the changes. In order to rollback simply checkout and push the previous version of the origin-service repo.

Backend

Deploying the backend components using standard cosmos-process for docker components.

...

Code Block
languagebash
cd thiss-js && git pull
git checkout <version>
npm install
make clean
make BASE_URL='https://use.thiss.io/' COMPONENT_URL='https://use.thiss.io/cta/' MDQ_URL='https://md.thiss.io/entities/' PERSISTENCE_URL='https://use.thiss.io/ps/' SEARCH_URL='https://md.thiss.io/entities/' STORAGE_DOMAIN='use.this.io' LOGLEVEL='error' DEFAULT_CONTEXT='thiss.io' TARGET='../origin.thiss.io/' build_in_docker deploy
cd ../origin.thiss.io
git diff

...

Verify that the changes have taken effect - this may take a while depending on how quickly the CDN picks up the changes. In order to rollback simply checkout and push the previous version of the origin.thiss.io repo.

Backend

Deploying the backend components using standard cosmos-process for docker components.