loading...

Run a React app bootstrapped using cra on a different port

318097 profile image Mehul Lakhanpal Originally published at codedrops.tech ・1 min read
{
    ...
  "scripts": {
    "start": "PORT=7001 react-scripts start"
    }
}
Enter fullscreen mode Exit fullscreen mode

Thanks for reading πŸ’™

Follow @codedrops.tech for daily posts.

Instagram ● Twitter ● Facebook

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

codedrops.tech

Discussion

pic
Editor guide
Collapse
dance2die profile image
Sung M. Kim

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

Collapse
318097 profile image
Mehul Lakhanpal Author

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
318097 profile image
Mehul Lakhanpal Author

It's cross platform πŸ”₯πŸ‘

Collapse
dance2die profile image
Sung M. Kim

Thanks, Mehul :)