-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
I am following the language specific guides for node.js and stuck on "develop your app" section.
Everything runs smoothly as instructed until "use compose to develop locally"
I have copied the code into the docker-compose.dev.yml file into my project and run this command
** docker-compose -f docker-compose.dev.yml up --build ** which doesn't run nodemon and gives me the following error.
"""
node_docker-notes-1 | (node:38) UnhandledPromiseRejectionWarning: Error: Error connecting to mongo. connect ECONNREFUSED 127.0.0.1:27017
node_docker-notes-1 | at connect (/app/node_modules/ronin-database/lib/index.js:18:9)
node_docker-notes-1 | (node:38) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
node_docker-notes-1 | (node:38) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
"""
All packages are installed and updated the package.json file to enable the debug mode.