mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
30 lines
751 B
JavaScript
30 lines
751 B
JavaScript
|
|
#!/usr/bin/node
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Can be required as a module or called directly.
|
||
|
|
*
|
||
|
|
* In the latter case, it will do a queue run.
|
||
|
|
*
|
||
|
|
* The following environment variables may come in
|
||
|
|
* useful:
|
||
|
|
*
|
||
|
|
* DOUGAL_ROOT Use it to specify the path to Dougal's
|
||
|
|
* top directory (`software/`). Most of the time this
|
||
|
|
* is not needed unless running in a development
|
||
|
|
* environment.
|
||
|
|
*
|
||
|
|
* NODE_TLS_REJECT_UNAUTHORIZED=0 Use this when running
|
||
|
|
* against the internal test server or any other endpoint
|
||
|
|
* that has self-signed certificates. WARNING: think carefully
|
||
|
|
* if you really want to do this, most of the time you don't.
|
||
|
|
*/
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
processQueue: require('./process')
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
if (!module.parent) {
|
||
|
|
module.exports.processQueue().then(() => process.exit());
|
||
|
|
}
|