- deploy.yaml: jar 빌드 → scp 전송 → systemctl 재시작 - deploy/sb-backend.service: systemd 유닛 샘플 - deploy/README.md: 시크릿·서버 준비 안내 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=SB Backend (Spring Boot)
|
||||
After=network.target mariadb.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=deploy
|
||||
WorkingDirectory=/opt/sb-backend
|
||||
# WorkingDirectory 의 .env(properties 형식)를 Spring 이 자동 로드 (application.yml 의 config.import)
|
||||
# 또는 아래처럼 systemd 로 주입해도 됨:
|
||||
# EnvironmentFile=/opt/sb-backend/.env
|
||||
ExecStart=/usr/bin/java -jar /opt/sb-backend/app.jar
|
||||
SuccessExitStatus=143
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user