Skip to content

EMT/lunch-club

Repository files navigation

Lunch Club


### Local Setup

Installing

git clone https://github.com/EMT/lunch-club.git
cd lunch-club
npm install

#### Running the slack bot

cd slack
token=<slack api token here> node convo-bot.js

#### Running the site

cd site
node site.js

### Server Commands

Check current process status

pm2 list

Updating on the server

cd /var/www/lunch-club
git pull
pm2 restart

Starting up again

If the server crashes, pm2 should automatically bring both the processes back up. If it fails to do this and pm2 list shows no active processes then use these commands to re-add them.

cd /var/www/lunch-club/site/
pm2 start site.js

cd ../slack/
pm2 start convo-bot.js

pm2 list