Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change HOST in production build #4905

Closed
viru9 opened this issue Aug 21, 2018 · 1 comment
Closed

change HOST in production build #4905

viru9 opened this issue Aug 21, 2018 · 1 comment

Comments

@viru9
Copy link

viru9 commented Aug 21, 2018

i have changed the default PORT for production build like,

"scripts": {
  "start": "react-scripts start",
  "build": "react-scripts build",
  "deploy": "serve -p 8002 -s build"
}

can i change the HOST (localhost) some how ?, i need to do this for the production, not for the development.

@stereobooster
Copy link
Contributor

you can change hosts file

mydomain.dev 127.0.0.1

and later visit http://mydomain.dev:8002.

Question is unrelated to CRA itself, though

@Timer Timer closed this as completed Oct 5, 2018
@lock lock bot locked and limited conversation to collaborators Jan 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants