1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00
distbin_ynh/conf/systemd.service

19 lines
527 B
SYSTEMD
Raw Normal View History

2019-01-28 19:15:11 +01:00
[Unit]
2019-01-29 00:19:41 +01:00
Description=Distbin Service
2019-01-28 19:15:11 +01:00
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
2019-01-29 07:35:06 +01:00
Environment="PATH=__NODEJS_PATH__"
2019-01-31 23:04:35 +01:00
Environment="PORT=__PORT__"
2019-02-02 20:47:00 +01:00
Environment="DB_DIR=__FINALPATH__/db"
2019-02-07 21:40:19 +01:00
Environment="EXTERNAL_URL=https://__DOMAIN_URI__"
2019-02-02 21:09:14 +01:00
Environment="NODE_ENV=production"
2019-01-28 19:15:11 +01:00
WorkingDirectory=__FINALPATH__/
2019-02-01 23:50:57 +01:00
ExecStart=/bin/sh -c '__FINALPATH__/node_modules/.bin/ts-node --project __FINALPATH__/tsconfig.json __FINALPATH__/bin/server.ts >> /var/log/__APP__/__APP__.log 2>&1'
2019-01-28 19:15:11 +01:00
[Install]
WantedBy=multi-user.target