Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

gofigure fails to start when NODE_ENV isn't set #11

Open
tim-kretschmer-c2fo opened this issue Jun 27, 2014 · 1 comment
Open

gofigure fails to start when NODE_ENV isn't set #11

tim-kretschmer-c2fo opened this issue Jun 27, 2014 · 1 comment

Comments

@tim-kretschmer-c2fo
Copy link

Ran into the following problem with Ubuntu + IntelliJ IDEA.

Repro
  1. Set NODE_ENV in bash profile
  2. Verify that the value is set from terminal
  3. Launch IDEA
  4. Launch a Run configuration from within the IDE
Expect

Either the targeted script runs, or gofigure reports that NODE_ENV isn't set.

Actual

Errors are listed in the console that the first config property being accessed is undefined.

This specifically happened with IDEA since it doesn't create a user's session in bash, which leaves out variables set in the user's profile.

@tim-kretschmer-c2fo
Copy link
Author

Two thoughts on this.

  1. check to see if NODE_ENV is set, and error out with a message if it isn't
  2. automatically pull in default configs when NODE_ENV isn't set

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant