Can somebody explain how to run my reactJS app on port 80, without specifying port
currently it works on www.mydomain.com:3001 but I want it to be visible when I go to www.mydomain.com
I can't find the solution on create-react-app docs website so I'm asking here.
If I run application with
sudo npm start
I get error that something is already using port 80 (I did specify PORT= 80)
Thanks
you have to specify PORT env variable to run on port 80 PORT=80 npm run start
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With