Run stuff FOREVER! PERPETUALLY!
npm install puppyperpetualjs
import Perpetual from '../index.js';
const perpetual = new Perpetual('test_process', {
process_cmd: 'node ./src/test/test_process.js',
});
await perpetual.run();
`
or anything really:
`js
import Perpetual from '../index.js';
const perpetual = new Perpetual('test_process', {
process_cmd: 'cd . && git pull && date',
});
await perpetual.run();
`
usage (as a node app thing)
as per tradition for my projects, simple installation!
1. npm i
then run once to create config
- npm run start
then customise it in store/config.yaml, making a new entry for every thing
then run like this:
- node .\perpetual.js --default
alternatively, just pass in your command:
- node .\perpetual.js "cd . && echo date"`