티스토리 뷰

공부

[React] change port

승가비 2020. 10. 16. 18:42
728x90
// package.json
{  
    ...
    
    "scripts": {
        "start": "set PORT=9090 && react-scripts start",
        "build": "react-scripts build",
        "test": "react-scripts test",
        "eject": "react-scripts eject"
    }, 
    
    ...
}

 

https://oofbird.tistory.com/50

 

[ReactJS] create-react-app의 실행 포트 변경

ReactJS로 프로젝트를 시작하면, 보통 create-react-app을 사용합니다. 개발을 하고 시작을 하려면 다음과 같은 명령을 실행하게 됩니다. yarn run start 그러면 http://localhost:3000으로 페이지가 열리게 됩니.

oofbird.tistory.com

 

728x90

'공부' 카테고리의 다른 글

[Network] L4 system deploy  (0) 2020.10.16
[Java] spark.sql.functions  (0) 2020.10.16
[React] CORS by proxy of `package.json`  (0) 2020.10.16
[JS] window.open().close()  (0) 2020.10.16
[Java] StringUtils.containsIgnoreCase  (0) 2020.10.16
댓글