This README covers some topics related to build and deploy of the rules / rule server.
By default, deployments build the current rulepack as the preview
archive. However, different branches deploy to different servers. The master
branch deploys to rules-dev.mybluemix.net/rules
. For end users to see the preview
archive, changes must be merged into the prod
branch.
- Install
- In
accessibility-checker-engine
andrule-server
runnpm install
- Build
- Delete
rule-server/dist
- In
rule-server
,npm run build
- The new archive will be found in
rule-server/dist/static/archives/preview
. Copy and renamepreview
to the archive directory (e.g.,rule-server/src/static/archives/yyyy.mm.dd
)
- Metadata
- Add an entry to
rule-server/src/static/archives.json
. See other entries for examples. Ensure that you move thelatest
property to the new archive.