How to start react application in specific port instead of default port 3000
Using Package.json file in our project
"scripts": {
"start": "PORT=2221 react-scripts start",
From Command Prompt
PORT=3030 npm run start
(OR)
PORT=3030 npm start
Using Package.json file in our project
"scripts": {
"start": "PORT=2221 react-scripts start",
From Command Prompt
PORT=3030 npm run start
(OR)
PORT=3030 npm start
Comments
Post a Comment