Skip to content

Warn the user when a config file was not found, but overrides exist #82

Closed

Description

@bajtos

See #71:

A few weeks back I was reading loopback's confluence docs and came across the config page. I saw the alternative config options that loopback supports and I thought: "oh, so I could use a smarter config! Great I need that". so I went ahead, renamed config.json to config.local.js and started converting the code. Substituting json config with a js config was second nature because I've seen it in many projects including my own. I restarted the server and realized the config was not picked up. I went back to the docs page and still couldn't figure it out. It was only after reading the source code that I was able to understand the config requirements. it took a few hours overall as I couldn't immediately spot where configuration is processed.

We should detect such situation and print a warning.

Related: #80.

Activity

  1. self-assigned this
    on Nov 17, 2015
  2. superkhau commented on Nov 17, 2015

    @superkhau
    Contributor

    Connect to #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions