DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on • Originally published at codedrops.tech

Run a React app bootstrapped using cra on a different port

{
    ...
  "scripts": {
    "start": "PORT=7001 react-scripts start"
    }
}
Enter fullscreen mode Exit fullscreen mode

Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramTwitterFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript

codedrops.tech

Top comments (5)

Collapse
 
dance2die profile image
Sung M. Kim

Will this be cross-platform or *nix specific solution?

Collapse
 
ml318097 profile image
Mehul Lakhanpal

Hey, I am really sorry. This method does not work on windows. Just tested. I had linux and Mac earlier and that works.
Sorry again.

Collapse
 
dance2die profile image
Sung M. Kim

No worries :)

Thank you for taking time to check, Mehul~

Collapse
 
ml318097 profile image
Mehul Lakhanpal

It's cross platform 🔥👍

Collapse
 
dance2die profile image
Sung M. Kim

Thanks, Mehul :)