Nodemon config

This commit is contained in:
Klemek
2019-06-26 19:44:52 +02:00
parent ddf964eb27
commit fc7bc63c46
2 changed files with 20 additions and 1 deletions
+8
View File
@@ -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 * Update your webhook on github to include the secret
* Check if Github successfully reached the endpoint * 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 ## Writing an article
[back to top](#gitblog-md) [back to top](#gitblog-md)
+12 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "gitblog.md", "name": "gitblog.md",
"version": "1.2.1", "version": "1.2.2",
"description": "A static blog using Markdown pulled from your git repository.", "description": "A static blog using Markdown pulled from your git repository.",
"main": "src/server.js", "main": "src/server.js",
"dependencies": { "dependencies": {
@@ -46,5 +46,16 @@
"!src/postinstall.js", "!src/postinstall.js",
"!src/lib/*.js" "!src/lib/*.js"
] ]
},
"nodemonConfig": {
"ignore": [
"test/*",
"sample_data/*",
"data/*",
"uml/*",
"*.log",
"README.md"
],
"delay": "2500"
} }
} }