Like Niush explains a queue:restart would be good enough in the deploy script. But if you really want to restart supervisor self in the forge quick deploy...
function processInput ( text ) { fs.open(‘H://log.txt’, ‘a’, 666, function( e, id ) { fs.write( id, text + “\n”, null, ‘utf8’, function(){ fs.close(id, function(){ console.log(‘file...
For occasional appends, you can use appendFile, which creates a new file handle each time it’s called: Asynchronously: const fs = require(‘fs’); fs.appendFile(‘message.txt’, ‘data to...
Example: If bill@solarmora.com wants a sales address for corresponding with customers, give him the email alias sales@solarmora.com. Mail sent to either address then appears in...
Auto restart apps on file change PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories: pm2...
The difference is documented here: As opposed to restart, which kills and restarts the process, reload achieves a 0-second-downtime reload. The latter means (found here): With reload, pm2 restarts all processes one...
You would need to follow the instructions described here 783 for increasing the size of your instance’s disk volume. Once the volume resizing is completed, you can reboot...