Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
26 lines
713 B
Cheetah
26 lines
713 B
Cheetah
# 관리형 동적(Node) 사이트 실행 유닛 — Agent 가 site.deploy(runtime=node) 때 만든다. 사이트 번들의 ariweb.json { "start": "node server.js", "port": N } 을 따른다.
|
|
[Unit]
|
|
Description=Ariweb site {{SITE_ID}}
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{USER}}
|
|
WorkingDirectory={{SITE_DIR}}/current
|
|
Environment=NODE_ENV=production
|
|
Environment=PORT={{PORT}}
|
|
Environment=ARIWEB_SITE_DATA={{SITE_DIR}}/data
|
|
ExecStart={{NODE}} {{START}}
|
|
Restart=always
|
|
RestartSec=3
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths={{SITE_DIR}}/data
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=ariweb-site-{{SITE_ID}}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|