Skip to content

Commit 2fe84ec

Browse files
committed
Respect process.env.PORT
1 parent 11894dc commit 2fe84ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: scripts/start.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ var detect = require('detect-port');
1919
var prompt = require('./utils/prompt');
2020
var config = require('../config/webpack.config.dev');
2121

22-
var DEFAULT_PORT = 3000;
22+
// Tools like Cloud9 rely on this
23+
var DEFAULT_PORT = process.env.PORT || 3000;
2324
var compiler;
2425

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

0 commit comments

Comments
 (0)