Added gulp to pm2 and updated pm2 + readme

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-26 14:34:58 +01:00
parent c341edc33a
commit 45fe704285
2 changed files with 15 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ in ```/server/config```. There are ```*.example.js``` files for all the ones men
If you want to use Google Analytics, have a look at ```analytics.example.js``` in ```server/config/```.
Use ```$ npm start``` to start the server.
Use ```$ npm start``` to start the server. (Alternative you can use the ```pm2.json``` in the project-root, if you prefer pm2 for running the apps.)
### About

View File

@@ -1,8 +1,16 @@
{
"apps" : [{
"name" : "zoff",
"script" : "./server/app.js",
"watch" : true,
"ignore_watch": ["node_modules", "public/assets/images/thumbnails"],
}]
"apps" : [
{
"name" : "zoff",
"script" : "./server/app.js",
"watch" : true,
"ignore_watch": ["./node_modules", "./server/public/assets/images/thumbnails"],
},
{
"name" : "gulp",
"script" : "./gulpfile.js",
"watch" : true,
"ignore_watch": ["./node_modules", "./server/"],
}
]
}