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-01-28 19:15:11 +01:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2019-01-28 23:44:06 +01:00
|
|
|
ExecStart=__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
|