Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart the app if environment variables change #389

Merged
merged 1 commit into from
Sep 5, 2018

Commits on Sep 5, 2018

  1. Restart the app if environment variables change

    Could be confusing why your changes aren’t having any effect.
    
    Doing this using the existing file-extension-based config doesn’t work
    because nodemon doesn’t undestand that `.env` is a file with no name,
    and an extension of `env`. So I’ve removed the file-extension-based
    stuff entirely and rewritten it to use globbing.
    
    Tested locally that:
    - changing `server.js` or `.env` causes the app to restart
    - changing a file inside `node_modules` _doesn’t_ cause the app to
      restart
    quis authored and 36degrees committed Sep 5, 2018
    Configuration menu
    Copy the full SHA
    9e0d9e4 View commit details
    Browse the repository at this point in the history