1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 03:02:49 +00:00

Added files

This commit is contained in:
2015-06-25 16:28:41 -05:00
parent 656dca9289
commit eb27b55a54
5621 changed files with 1630154 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
var cluster = require('cluster');
console.log(cluster.isMaster ? 'master fork':'cluster fork');

View File

@@ -0,0 +1,3 @@
setInterval(function () {
console.log('Logging at ' + Date.now());
}, 100);

16
node_modules/forever/test/fixtures/server.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
var util = require('util'),
http = require('http'),
argv = require('optimist').argv;
var port = argv.p || argv.port || 80;
http.createServer(function (req, res) {
console.log(req.method + ' request: ' + req.url);
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write('hello, i know nodejitsu.');
res.end();
}).listen(port);
/* server started */
util.puts('> hello world running on port ' + port);

16
node_modules/forever/test/fixtures/start-daemon.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/*
* start-daemon.js: Simple test fixture for spawning log-on-interval.js as a daemon
*
* (C) 2010 Charlie Robbins & the Contributors
* MIT LICENCE
*
*/
var path = require('path'),
forever = require('../../lib/forever');
var monitor = forever.startDaemon(path.join(__dirname, 'log-on-interval.js'));
monitor.on('start', function () {
forever.startServer(monitor);
});