This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
avris-daemonise with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Use this library to run any process in the background without blocking the console. It will start a child process, detach it, and save its PID to
daemonise.json in order to be able to stop it later.
yarn add avris-daemonise
The following command:
node_modules/.bin/avris-daemonise start webserver node_modules/.bin/webpack-dev-server \\--config ./webpack.config.js
node_modules/.bin/webpack-dev-server --config ./webpack.config.js in the background and save the PID to
./daemonise.json under the name
Note that the dashes have to be escaped with a double backslash (
\\--option), otherwise they are treated as options for
daemonise and not for the child process.
stderr will be saved to
./daemonise.log. You can change it with the
To stop the server, execute:
node_modules/.bin/avris-daemonise stop webserver