Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

removed express.createServer() #16

Merged
merged 2 commits into from

2 participants

@donnut

express.createServer() is depreciated from express v3.x on

donnut added some commits
@donnut donnut express.createServer() replaced
express.createServer() is depreciated
243ae38
@donnut donnut express.createServer() replaced
express.createServer() is depreciated
95f7fb0
@addyosmani addyosmani merged commit 29b0c61 into addyosmani:master
@addyosmani
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 12, 2012
  1. @donnut

    express.createServer() replaced

    donnut authored
    express.createServer() is depreciated
  2. @donnut

    express.createServer() replaced

    donnut authored
    express.createServer() is depreciated
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  option1/app.js
  2. +1 −1  option2/app.js
View
2  option1/app.js
@@ -3,7 +3,7 @@ var application_root = __dirname,
path = require("path"),
mongoose = require('mongoose');
-var app = express.createServer();
+var app = express();
// model
mongoose.connect('mongodb://localhost/my_database');
View
2  option2/app.js
@@ -3,7 +3,7 @@ var application_root = __dirname,
path = require("path"),
mongoose = require('mongoose');
-var app = express.createServer();
+var app = express();
// model
mongoose.connect('mongodb://localhost/my_database');
Something went wrong with that request. Please try again.