18 lines
350 B
Django/Jinja
18 lines
350 B
Django/Jinja
[Unit]
|
|
Description=Ghost blog for {{ item.name }}
|
|
After=network.target
|
|
After=mariadb.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ item.account }}
|
|
WorkingDirectory={{ item.home }}
|
|
Environment="NODE_ENV=production"
|
|
ExecStart={{ item.home }}/node_modules/.bin/ghost run --dir www
|
|
TimeoutSec=15
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|