A server to refresh group repositories in w3c/groups.
settings.json
(within the groups repository) also contains configuration settings used by this server.
It may be edited by hand.
By default, the server is in dev mode and will not save to GitHub nor send email reports.
- Copy
config.json.defaulttoconfig.json - Change
"debug": false,to"debug": true,to avoid making unecessary GitHub API calls - Also clone the
w3c/groupsrepository - Update the value of
"destination"to reflect the relative path from this repository's root directory to that one, e.g."../groups"if the two projects are cloned into sibling directories - Run
npm startto run the server locally, which will write to the localgroupsrepository folder
Run npm test to run the local set of test files.
Run npm run coverage to get a test coverage report.
The code uses the debug module. The DEBUG environment variable is used to filter debug messages.
Use DEBUG=* npm start to see all debug messages. You may filter debugging modules using DEBUG=w3c,loop npm start for example.
DEBUG=w3c node --test --test-name-pattern "lib/w3c group" will debug the lib/w3c.js module, running only the tests related to that module
export NODE_ENV=production environment variable will be necessary
(see express documentation)
Note that the pm2 config already contains it.
When in production mode, the server will write to GitHub and sends email reports.