2018-11-21 19:55:53 +01:00
|
|
|
[Unit]
|
2020-05-21 15:42:43 +02:00
|
|
|
Description=__APP__: collaborative Markdown notes
|
2020-05-21 12:49:24 +02:00
|
|
|
After=network.target
|
2020-05-23 09:14:00 +02:00
|
|
|
After=postgresql.service
|
2018-11-21 19:55:53 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-05-23 15:16:11 +02:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2018-11-21 19:59:44 +01:00
|
|
|
WorkingDirectory=__FINALPATH__
|
|
|
|
Environment="PATH=__ENV_PATH__"
|
2019-11-28 02:05:34 +01:00
|
|
|
Environment="NODE_ENV=production"
|
|
|
|
ExecStart=/usr/bin/yarn start
|
2018-11-21 19:55:53 +01:00
|
|
|
Restart=always
|
2020-05-21 12:49:24 +02:00
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
2018-11-21 19:55:53 +01:00
|
|
|
|
|
|
|
[Install]
|
2018-11-21 19:59:44 +01:00
|
|
|
WantedBy=multi-user.target
|