Installing development tools
Building thiss-js and related packages requires node 12.x and npm 6.x. Install using the appropriate package manager.
Ubuntu 18.04
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install nodejs
Brew (MacOS)
https://formulae.brew.sh/formula/node@12
Cloning repositories
Prepare your deploy environement. Note that use.thiss.io does not do whitelisting which means the WHITELIST variable is not set.
git clone https://github.com/TheIdentitySelector/thiss-js git clone git@github.com/TheIdentitySelector/origin.thiss.io git clone git@github.com:seamlessaccess/origin-service
service.seamlessaccess.org
Frontend
Prepare your deploy environement. The current whitelist needs to be checked with the master list before each deploy.
To deploy <version> to production
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 deploy cd ../origin-service git diff
The final "git diff" should show a set of differences against the currently deployed version. Now commit and push this version to origin-service:
git commit && git push
Verify that the changes have taken effect - this may take a while depending on how quickly the CDN picks up the changes.
Backend
Deploying the backend components using standard cosmos-process for docker components.
use.thiss.io
Frontend
To deploy <version> to beta (use.thiss.io)
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 deploy cd ../origin.thiss.io git diff
The final "git diff" should show a set of differences against the currently deployed version. Now commit and push this version to origin.thiss.io:
git commit && git push
Verify that the changes have taken effect - this may take a while depending on how quickly the CDN picks up the changes.
Backend
Deploying the backend components using standard cosmos-process for docker components.