From fc7bc63c46ec7fa0ddcd03f47ec60c30dc6a6933 Mon Sep 17 00:00:00 2001 From: Klemek Date: Wed, 26 Jun 2019 19:44:52 +0200 Subject: [PATCH] Nodemon config --- README.md | 8 ++++++++ package.json | 13 ++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0466fc2..ad9d597 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,14 @@ Here are the steps for Github, if you use another platform adapt it your way (he * Update your webhook on github to include the secret * Check if Github successfully reached the endpoint +#### 8. Keep your server always up and running (optionnal) + +This project `package.json` comes with a [nodemon](https://github.com/remy/nodemon) config. + +After installing (`npm i -g nodemon`) you can then run the app with juste the `nodemon` command in the working directory. + +With this method, you can do a simple `git pull` to update your server. + ## Writing an article [back to top](#gitblog-md) diff --git a/package.json b/package.json index 1a1d5e8..13fdb88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gitblog.md", - "version": "1.2.1", + "version": "1.2.2", "description": "A static blog using Markdown pulled from your git repository.", "main": "src/server.js", "dependencies": { @@ -46,5 +46,16 @@ "!src/postinstall.js", "!src/lib/*.js" ] + }, + "nodemonConfig": { + "ignore": [ + "test/*", + "sample_data/*", + "data/*", + "uml/*", + "*.log", + "README.md" + ], + "delay": "2500" } }