Skip to content

시작하기

suk kyun hong edited this page Sep 26, 2023 · 2 revisions

Start

{Profile}의 경우 하위 문서 참고할 것

java -jar -Dspring.profiles.active={Profile} ./board.0.0.6.jar

Pinpoint를 적용하고 싶다면 다음과 같이

java\
-javaagent:C:\develop\pinpoint-agent-2.5.2\pinpoint-bootstrap-2.5.2.jar\
-Dpinpoint.applicationName=board\
-Dpinpoint.agentId=board\ 
-Dpinpoint.profiler.profiles.active=local\
-jar -Dspring.profiles.active={Profile} ./board.0.0.6.jar

Profile

profile에는 local, prod, prod-posgresql이 있음

prod-posgresql같은 경우 현재 사용하지 않는다

Profile 명 DB Kafka Log
local H2 In-Memory DB Local X
prod MySQL 추가 연동 필요 O

Environments

prod환경에서 사용하는 환경변수

환경변수 명 예시
MYSQL_HOST {IP}, 12.345.567.45
MYSQL_PORT 3306
MYSQL_USER admin
MYSQL_PASSWORD 1234
KAFKA_SERVERS {IP}:{PORT}, 12.345.567.45:9092

GitHub Secrets

GitHub Actions을 통해 배포하기 위해 설정해야하는 Secret Variable

Secret 명 설명
GHCR_TOKEN GitHub Token, GitHub Container Registry에 연결하기 위함
REMOTE_IP 배포 원격 IP
REMOTE_USER 배포 서버 리눅스 사용자 명
REMOTE_PASSWORD 배포 서버 리눅스 사용자 비밀번호
REMOTE_SSH_PORT 배포 서버 SSH 연결 포트
PINPOINT_COLLECTOR_IP Pinpoint 서버 IP
Clone this wiki locally