Purpose of this library
Provide tested set of bash scripts to run, keep running, and stop any script.
requirements
npx usage
npx bash-make-lifecycle
or
npx bash-make-lifecycle target-dir
then follow Makefile
yarn
make start
make status
# now visit localhost:1025
make stop
make status
about "forever"
Docker
to test in docker/linux
docker build -t node:bash-make-lifecycle .
docker run -it -v "$PWD":/usr/src/myapp -w "/usr/src/myapp" -e TRAVIS=true --cap-add=SYS_TIME node:bash-make-lifecycle make t
Dev notes
To update this lib after commit just run:
/bin/bash update.sh