Skip to content

Commit

Permalink
Respect process.env.PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jul 27, 2016
1 parent 11894dc commit 2fe84ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ var detect = require('detect-port');
var prompt = require('./utils/prompt');
var config = require('../config/webpack.config.dev');

var DEFAULT_PORT = 3000;
// Tools like Cloud9 rely on this
var DEFAULT_PORT = process.env.PORT || 3000;
var compiler;

// TODO: hide this behind a flag and eliminate dead code on eject.
Expand Down

0 comments on commit 2fe84ec

Please sign in to comment.