Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
2fe84ecd
Commit
2fe84ecd
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Respect process.env.PORT
parent
11894dcd
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/start.js
+2
-1
scripts/start.js
with
2 additions
and
1 deletion
+2
-1
scripts/start.js
+
2
-
1
View file @
2fe84ecd
...
@@ -19,7 +19,8 @@ var detect = require('detect-port');
...
@@ -19,7 +19,8 @@ var detect = require('detect-port');
var
prompt
=
require
(
'
./utils/prompt
'
);
var
prompt
=
require
(
'
./utils/prompt
'
);
var
config
=
require
(
'
../config/webpack.config.dev
'
);
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
;
var
compiler
;
// TODO: hide this behind a flag and eliminate dead code on eject.
// TODO: hide this behind a flag and eliminate dead code on eject.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets