Skip to content
Browse files

Update server stuff

  • Loading branch information...
1 parent 3bf20cf commit c69bb37086e9df0b8cb3f51bf91a473a02c6574d @creationix committed Jun 26, 2011
Showing with 34 additions and 10 deletions.
  1. +2 −1 .gitignore
  2. +8 −9 app.js
  3. +21 −0 package.json
  4. +3 −0 server.js
View
3 .gitignore
@@ -1 +1,2 @@
-cache
+cache
+node_modules
View
17 app.js
@@ -1,11 +1,10 @@
// Just a basic server setup for this site
-var Connect = require('connect');
+var Http = require('http'),
+ Stack = require('stack'),
+ Creationix = require('creationix'),
+ Wheat = require('wheat');
-module.exports = Connect.createServer(
- Connect.logger(),
- Connect.conditionalGet(),
- Connect.favicon(),
- Connect.cache(),
- Connect.gzip(),
- require('wheat')(__dirname)
-);
+module.exports = Http.createServer(Stack(
+ Creationix.log(),
+ Wheat(__dirname)
+));
View
21 package.json
@@ -0,0 +1,21 @@
+{
+ "author": "Tim Caswell <tim@creationix.com> (http://creationix.com/)",
+ "name": "howtonode.org",
+ "description": "The popular blog howto.no.de",
+ "version": "0.0.0",
+ "homepage": "http://howto.no.de/",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/creationix/howtonode.org.git"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ },
+ "dependencies": {
+ "stack": ">=0.0.3",
+ "creationix": ">=0.1.2",
+ "wheat": ">=0.2.0",
+ "cluster": ">=0.6.4"
+ },
+ "devDependencies": {}
+}
View
3 server.js
@@ -0,0 +1,3 @@
+var Cluster = require('cluster');
+
+Cluster('app').listen(8080);

0 comments on commit c69bb37

Please sign in to comment.
Something went wrong with that request. Please try again.