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

NODE_ENV undefined #32

Open
harksha opened this issue Feb 24, 2016 · 1 comment
Open

NODE_ENV undefined #32

harksha opened this issue Feb 24, 2016 · 1 comment

Comments

@harksha
Copy link

harksha commented Feb 24, 2016

Running the server normally goes well without errors, but when doing the 'serve-dev' task NODE_ENV is always undefined, even if I explicitly set it to 'dev'
`About to crank up node

PORT=7203

NODE_ENV=undefined

** DEV **

Express server listening on port 7203

env = development

__dirname = C:\Projects\pluralsight-gulp\src\server

process.cwd = C:\Projects\pluralsight-gulp`

@liran96
Copy link

liran96 commented Mar 21, 2016

if you're using Windows, run a search for "enviroment".go to Enviroment Variables and add the variable and its value(variable:NODE_ENV, value:build).then run node src/server/app.js from cli.
it worked for me.

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

No branches or pull requests

2 participants