feat: full untested ansible setup
This commit is contained in:
17
roles/bun_app/templates/bun-app.service.j2
Normal file
17
roles/bun_app/templates/bun-app.service.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description={{ bun_app.name }} Bun service
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ bun_app.deploy_user }}
|
||||
Group={{ bun_app.deploy_group }}
|
||||
WorkingDirectory={{ bun_app.path }}
|
||||
EnvironmentFile=/etc/{{ bun_app.name }}/app.env
|
||||
ExecStart={{ bun_bin_path }} {{ bun_app.entrypoint }}
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user