Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated to node v0.8.x and express 3.x

  • Loading branch information...
commit c6e2f4778128f114fb262fac51e4cd76054ca1b9 1 parent 36d0453
TheRealLink authored
Showing with 15 additions and 16 deletions.
  1. +7 −8 app.js
  2. +8 −8 package.json
View
15 app.js
@@ -94,20 +94,21 @@
UI = new foreverUI();
- app = express.createServer();
+ app = express();
HEADER = {
'Content-Type': 'text/javascript'
};
- app.configure(function() {
+ app.configure(function () {
+ app.engine('html', ejs.renderFile);
+ app.set('views', __dirname + '/views');
+ app.use(express.static(__dirname + '/public'));
+
app.use(express.bodyParser());
app.use(express.cookieParser());
- app.register('.ejs', ejs);
- app.set('views', __dirname + '/views');
- app.set('view engine', 'html');
app.use(express.methodOverride());
- return app.use(app.router);
+ app.use(app.router);
});
app.configure("development", function() {
@@ -115,12 +116,10 @@
dumpExceptions: true,
showStack: true
}));
- return app.use(express.static(__dirname + "/public"));
});
app.configure("production", function() {
app.use(express.errorHandler());
- return app.use(express.static(__dirname + '/public'));
});
app.set('view options', {
View
16 package.json
@@ -6,16 +6,16 @@
"homepage": "https://github.com/FGRibreau/forever-webui",
"repository": "git://github.com/FGRibreau/forever-webui.git",
"dependencies": {
- "async":"0.1.15",
- "coffee-script":"1.1.2",
- "express":"2.5.1",
- "forever":"0.7.x",
- "underscore":"1.2.2",
- "ejs":"0.5.0",
- "ansiparse":"0.0.4"
+ "async": "0.1.22",
+ "coffee-script": "1.3.3",
+ "express": "3.0.0rc3",
+ "forever": "0.10.0",
+ "underscore": "1.3.3",
+ "ejs": "0.8.2",
+ "ansiparse": "0.0.5-1"
},
"repository": "",
"author" : "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
"main" : "index",
- "engines": { "node": ">= 0.4.12" }
+ "engines": { "node": ">= 0.8.2" }
}
Please sign in to comment.
Something went wrong with that request. Please try again.