Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* bin/delta-processor: Log DeltaProcessor#process errorsMike Gerwitz2019-12-121-8/+17
|
* bin/delta-processor: Provide error to EventMediatorMike Gerwitz2019-12-121-1/+1
| | | | This will log in the same format as the rest of the system.
* DeltaPublisher: Remove parsing from constructorMike Gerwitz2019-12-121-0/+2
|
* AmqpConnection: Propagate assertExchange promiseMike Gerwitz2019-12-121-1/+2
| | | | Failures were being ignored.
* [DEV-5312] Refactor class dependenciesAustin Schaffer2019-12-121-242/+59
| | | | Move create config functions out of the main delta-processor.ts file. Change some any types to more specific types. Define document structure better. Move prometheus logic out of processor class. Do not call logger directly, listen for events and log them. Change logger to more PSR-3 compliant style. Extract amqp connection into its own class. Create avro and mongo objects in factory.
* [DEV-5312] Add logic to apply delta to bucket then publish modified bucketAustin Schaffer2019-12-121-43/+32
|
* [DEV-5312] Refactor references from 'self' to 'this', pass console into ↵Austin Schaffer2019-12-121-84/+144
| | | | event logger, and add factory for prometheus
* [DEV-5312] Generalize event subscribers and dispatchersAustin Schaffer2019-11-251-8/+4
|
* [DEV-5312] Reconnect AMQP when connection dropsAustin Schaffer2019-11-251-28/+38
|
* [DEV-5312] Add signal handling and prometheus monitoringAustin Schaffer2019-11-221-21/+137
|
* [DEV-5312] Call data-processor and instantiate classesAustin Schaffer2019-11-201-1/+147
|
* bin/server.ts: fs.unlink requires two arguments on Node v12Mike Gerwitz2019-11-121-1/+1
|
* [DEVOPS-143] Node 12, needs a callback for asynchronous file writes, so ↵Burzlaff, Herbert2019-11-121-1/+1
| | | | switching to synchronous file writes instead
* bin/server: Convert to TypeScriptMike Gerwitz2019-11-121-19/+26
|
* bin/delta-processor: Placeholder scriptMike Gerwitz2019-11-113-0/+55
|
* bin/server.in: execv3.1.2Mike Gerwitz2017-10-061-1/+1
|
* Account for absolute paths in configurationv3.1.1Mike Gerwitz2017-09-141-2/+19
| | | | | * bin/server.js: Resolve absolute paths as such. (_resolvePath): Add function.
* Re-add pidfilev3.1.0Mike Gerwitz2017-09-121-3/+16
| | | | | | | | Configurable via the `pidfile' config option. * bin/server.js: Accept `pidfile' config. Include path in greeting. (writePidFile): Write to `pidfile' and unlink after exit. * conf/vanilla-server.json (pidfile): Add configuration key.
* conf: Specify relative/absolute path to daemonMike Gerwitz2017-09-081-5/+8
| | | | | | | | This isn't ideal, but will allow using daemons classes from anywhere on disk. * bin/server.js: Interpret daemon path as relative to conf file path. * conf/vanilla-server.json: Use relative path to `DevDaemon'.
* Add bin/server to invoke server using configure'd nodeMike Gerwitz2017-08-291-0/+32
| | | | | | | | | | * .gitignore (bin/server): Ignore generated file. * bin/server.in: Add script. * configure.ac: (NODE): Correct description (capitalize `Node'). (NODE_FLAGS): Add arg var. (NODE_DESTRUCTURE): Use determined node path for test. (AUTOGENERATED): Add substitution. (AC_CONFIG_FILES): Add bin/server. Make it executable.
* [BC BREAK] bin/server.js and associated changesMike Gerwitz2017-08-291-0/+66
This is based (very) loosely on an internal script to start the daemon. It accepts a configuration and starts the daemon. To accommodate the configuration, a number of miscellaneous changes have been made. The vanilla configuration shows the concept, but it has not yet been fully implemented; that'll likely happen at a later date. Until then, the existing environment-variable-based configuration will be used. * bin/server.js: Add file. * conf/vanilla-server.json: Example configuration added. * src/server/daemon/Daemon.js (_httpPort): Remove field. (_conf): Add field. (__construct): [BC BREAK] Accept conf instead of port and log priority. Move initialization code into `start'. (start): [BC BREAK] Initialization code moved here. Now returns promise for entire daemon, which will error in the event of an error starting. Move existing code into `_startDaemon'. (_startDaemon): Old `start' code. Invoked after `start' initialization. (_createDebugLog, _createAccessLog): Use configuration. Return promise. (_initHttpServer): Use configuration. (_httpError): Add function to output error and exit. Extracted from `_initHttpServer'. * src/server/daemon/scripts.js: [BC BREAK] Append "program/" to `LV_LEGACY_PATH' so that it can be re-used for script lookups rather than using the cwd. This removes the need of the cwd being the legacy src path.