블로그 이름

sts에서 웹 빌드본 톰캣 적용하는 방법 본문

개발/Spring

sts에서 웹 빌드본 톰캣 적용하는 방법

Hide 2024. 6. 26. 20:27

1. 개발경로\html 의 node_modules 폴더를 제거 

2. vscode 터미널에서 순서대로 진행

3. npm install --ignore-scripts

4. set NODE_OPTIONS="--max-old-space-size=8192"

5. npm run build:prod

6. 빌드 성공시, 개발경로html 의 dist폴더가 생성됨.

7. dist 폴더 내용물이 html 빌드 파일


tomcat7 > webapps > html 에 넣기
 

개발서버 톰캣에
모듈에 /해서 위 경로 넣기

'개발 > Spring' 카테고리의 다른 글

[Spring] MySQLSyntaxErrorException 해결  (0) 2024.10.30
[Spring] 에러 로그가 안찍히는 현상  (0) 2024.10.30
[Spring] jsp 오류 안보이게 하는법  (0) 2024.09.05
.class 파일 찾는법  (0) 2024.02.15
Spring 단축키  (0) 2022.05.31