Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
26 lines
841 B
Cheetah
26 lines
841 B
Cheetah
# Webmaker(도입 모듈 WebHosting_AI_agent) — 원본 deploy/webhosting-agent.service 를 바탕으로 HAL 배치 레이아웃(releases/current)에 맞춘 유닛.
|
|
# 데이터·포트·경로 환경 변수(DATA_ROOT·DATA_DIR·SITES_ROOT·STATS_LOG·PUBLIC_BASE_URL 등)는 서버에 있던 기존 유닛의 Environment 줄({{ENV_LINES}})을 그대로 보존한다.
|
|
[Unit]
|
|
Description=AI Webmaker ({{VERSION}}, Ariweb Suite managed)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{USER}}
|
|
Group={{USER}}
|
|
WorkingDirectory={{APP_DIR}}/current
|
|
Environment=NODE_ENV=production
|
|
Environment=HOST=127.0.0.1
|
|
Environment=PORT=3080
|
|
{{ENV_LINES}}
|
|
ExecStart={{NODE}} server.js
|
|
Restart=always
|
|
RestartSec=3
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=webmaker
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|