How to do it...

Fuge needs a simple configuration file in order to take control of our development system, let's write it now.

We need to create a directory called fuge at the same level as our webapp and service directories:

$ cd micro$ mkdir fuge 

Next we need to create a file fuge.yml in this directory and add the following configuration code:

fuge_global:   tail: true   monitor: true   monitor_excludes:     - '**/node_modules/**'     - '**/.git/**'     - '**/*.log' adderservice:   type: process   path: ../adderservice   run: 'node service.js'   ports:     - main=8080 webapp:   type: process   path: ../webapp   run: 'npm start'   ports:     - main=3000

Fuge will provide us with an execution shell for our apps and services.

We can enter the fuge shell environment with the following ...

Get Node Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.