Skip to content

Commit ef4e3b0

Browse files
committed
Use cross-env to change default port
We should change default port from 3000 to 4100 to prevent conflict with locally running node/rails backend for Conduit (they also have default port 3000).
1 parent 16e498f commit ef4e3b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"devDependencies": {
6+
"cross-env": "^4.0.0",
67
"react-scripts": "0.8.5"
78
},
89
"dependencies": {
@@ -18,9 +19,9 @@
1819
"superagent-promise": "^1.1.0"
1920
},
2021
"scripts": {
21-
"start": "react-scripts start",
22+
"start": "cross-env PORT=4100 react-scripts start",
2223
"build": "react-scripts build",
23-
"test": "react-scripts test --env=jsdom",
24+
"test": "cross-env PORT=4100 react-scripts test --env=jsdom",
2425
"eject": "react-scripts eject"
2526
}
2627
}

0 commit comments

Comments
 (0)