diff --git a/app.js b/app.js index 43398b6..7ea3db0 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + var express = require('express'); var bodyParser = require('body-parser'); var https = require('https'); diff --git a/slackbot.service b/slackbot.service index aa53142..bf8deca 100644 --- a/slackbot.service +++ b/slackbot.service @@ -1,13 +1,13 @@ [Unit] -Description=Your app +Description=slackbot After=network.target [Service] -ExecStart=/var/www/myapp/app.js +ExecStart=/var/www/slackbot/app.js Restart=always User=nobody Group=nobody Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production -WorkingDirectory=/var/www/myapp +WorkingDirectory=/var/www/slackbot [Install] WantedBy=multi-user.target \ No newline at end of file