Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for overriding NODE_ENV. Closes #505
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13b3b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I am new to go, but if I am reading it correctly this is going to override NODE_ENV with the stage variable? Sorry for dumb questions ¯_(ツ)_/¯... I am just interested in learning go.
13b3b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if it
== ""
:D theGetenv()
will give you an empty string if it's not defined, but I should just doif os.Getenv("NODE_ENV") == ""
hahah... no reason for the var13b3b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ that explains a lot. Thanks!