Restart on file changes
The example at /docs/src/examples/watcher runs
script.js with Deno using Pup. The process is restarted on any file change in the
current directory (configuration
- pup.jsonc - Pup configuration, sets up
script.jsto run forever, and restart when a file in the current directory changes.
- script.js - The actual script to run. Prints "Script running (for about an hour, if nothing else happens)..."
Start example by running
pup run if pup is installed, pup will automatically pick up the configuration in
Run something like
deno run -A ../../../pup.ts run if pup is not installed globally.