Permalink
Browse files

Updated prod/dev port settings

  • Loading branch information...
1 parent b91cf1e commit af5c52f31faaf8037c6e678c8b8b479f9f662a4f Jonathan Mumm committed Jun 18, 2011
Showing with 8 additions and 4 deletions.
  1. +1 −1 .env
  2. +3 −1 .gitignore
  3. 0 .monitor
  4. +4 −2 app.js
View
2 .env
@@ -1 +1 @@
-NODE_ENV=production
+NODE_ENV=development
View
4 .gitignore
@@ -1 +1,3 @@
-node_modules
+node_modules
+.env
+.monitor
View
0 .monitor
No changes.
View
6 app.js
@@ -3,11 +3,10 @@ var io = require('socket.io');
var app = module.exports = express.createServer();
-console.log('NODE_ENV= ' + process.env.NODE_ENV);
+console.log('NODE_ENV=' + process.env.NODE_ENV);
// Configuration
app.configure(function() {
- app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
@@ -17,6 +16,7 @@ app.configure(function() {
});
app.configure('development', function() {
+ app.set('port', process.env.PORT || 3000);
app.set('address', 'localhost');
app.use(express.errorHandler({
dumpExceptions: true,
@@ -25,7 +25,9 @@ app.configure('development', function() {
});
app.configure('production', function() {
+ app.set('port', 80);
app.set('address', 'fierce-sword-182.herokuapp.com');
+ app.set
app.use(express.errorHandler());
});

0 comments on commit af5c52f

Please sign in to comment.