프로젝트/SNS를 통한 운동팀 매칭 서비스

배포환경 구축(2): Server에서 test

Mev01 2021. 8. 26. 23:24

먼저 git에 있는 프로젝트를 Server로 가져온 후 잘 되는지 테스트해보겠습니다.

git 프로젝트의 제일 상위 폴더는 frontend, backend 폴더로 나누어져 있습니다.

 

개발 환경 준비를 위해 먼저 DB세팅, NVM 설치, JAVA 설치를 완료합니다.

 

git clone [git주소]

# 프론트 테스트
cd [서버에 clone된 프로젝트 폴더에서 frontend 위치]
yarn install
yarn serve

# 백엔드 테스트
cd [서버에 clone된 프로젝트 폴더에서 backend 위치]
./mvnw spring-boot:run

위 코드를 따라 테스트를 진행합니다.

 

Invalid Host header에러 발생 시 frontend 폴더 밑에 vue.config.js 파일을 추가합니다.

파일의 내용은 아래와 같습니다.

module.exports = {
	configureWebpack: {
		// other webpack options to merge in ...
	},
	// devServer Options don't belong into `configureWebpack`
	devServer: { host: "0.0.0.0", hot: true, disableHostCheck: true },
};