execute local commands remotely via http requests
| .vscode | ||
| libs | ||
| .gitignore | ||
| .nvmrc | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| remex.js | ||
| sample-config.json | ||
remex
execute local commands remotely via http requests
configuration
configuration is done entirely within the file config.json.
server: [object]
- listen: [string] listen address
- port: [number] port to listen on
log: [object]
- level: [string] verbosity of the log; either
debug,info,warningorerror - timestamp: [string] format string for the timestamp; review moment.js for further information
api: [object-array]
- url: [string] endpoint url; example:
/example - method: [string] http request method
- command: [string] command to execute
- args: [string-array] arguments to pass to the executed command
- options: [object]
- detach [boolean] detach from the executed command / do not wait for the command to finish
- unique [boolean or string] if set to
truethe command can not be executed again until it has finished; if set torestartthe command will be killed (if active) and started again; if set totogglethe command will either be killed if active or started if not active