4 ms·
We use forever for this: https://github.com/foreverjs/forever https://github.com/foreverjs/forever forever -w start yourFile.js That'll keep it up and going a
by yeldarb 12y ago
We use forever for this: https://github.com/foreverjs/forever https://github.com/foreverjs/forever
forever -w start yourFile.js
That'll keep it up and going as a daemon and reboot it when files change :)
- moron4hire 12y agoNo, that's not the issue. I actually am using forever. I'm not entirely sure what the problem was, but I think the entire VPS was falling over, so when it comes back there is nothing to kick off forever. It is fixed, now, though, by letting Apache serve the static files. I'm not a sysadmin and I've never had anywhere near this much traffic before.
- yeldarb 12y agoAh, perhaps setting up an @reboot cron job to kick off the forever process would do the trick. Also, setting up a CDN in front of your static files is actually much easier than it sounds at first. You can just setup a Cloudfront distribution that uses your domain as its source; that should take off a lot of the load.