From 2710c4570946e71e7f1233e56e0764fcb5bc117d Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Wed, 4 Mar 2020 04:28:03 +0100 Subject: Document starting dev app with misty and debug --- README.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 700df2ac2..10483abe5 100644 --- a/README.md +++ b/README.md @@ -189,17 +189,10 @@ $ npm run rebuild ### Start development app -Run these two commands **simultaneously** in different terminals: +We use [misty](https://github.com/adlk/misty) (see [misty.yml](https://github.com/getferdi/ferdi/blob/develop/misty.yml)) and [debug](https://github.com/visionmedia/debug): ```bash -$ npm run dev -$ npm run start -``` - -Optionally, you can run both commands in one terminal with [misty](https://github.com/adlk/misty) (see [misty.yml](https://github.com/getferdi/ferdi/blob/develop/misty.yml)): - -```bash -$ npx misty +$ DEBUG=Ferdi:* npx misty ``` Be aware that the development database will be reset regularly. -- cgit v1.2.3-70-g09d2 From 668c6e6caf0b28b962f6e0158fc3d5fc30f3fa05 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Mon, 9 Mar 2020 19:59:15 +0100 Subject: Revert misty changes while keeping debug doc --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 10483abe5..cd3eb7a24 100644 --- a/README.md +++ b/README.md @@ -189,13 +189,20 @@ $ npm run rebuild ### Start development app -We use [misty](https://github.com/adlk/misty) (see [misty.yml](https://github.com/getferdi/ferdi/blob/develop/misty.yml)) and [debug](https://github.com/visionmedia/debug): +Run these two commands **simultaneously** in different terminals: + +```bash +$ npm run dev +$ DEBUG=Ferdi:* npm run start +``` + +Optionally, you can run both commands in one terminal with [misty](https://github.com/adlk/misty) (see [misty.yml](https://github.com/getferdi/ferdi/blob/develop/misty.yml)): ```bash $ DEBUG=Ferdi:* npx misty ``` -Be aware that the development database will be reset regularly. +Note: please prefer [`debug()`](https://github.com/visionmedia/debug) over `console.log()`. ### Packaging -- cgit v1.2.3-70-g09d2