2018-04-09 21:28:36 +02:00
|
|
|
[Unit]
|
|
|
|
Description=HackMD
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=NODE_ENV=production
|
2018-10-08 20:28:06 +02:00
|
|
|
WorkingDirectory=/opt/codimd-{{ hackmd_version }}
|
2018-04-09 21:28:36 +02:00
|
|
|
Type=simple
|
|
|
|
User=hackmd
|
2018-10-08 20:28:06 +02:00
|
|
|
ExecStart=/usr/bin/node /opt/codimd-{{ hackmd_version }}/app.js
|
2018-04-09 21:28:36 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|