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

How to et environment = production #4

Open
dragGH102 opened this issue Jul 19, 2016 · 0 comments
Open

How to et environment = production #4

dragGH102 opened this issue Jul 19, 2016 · 0 comments

Comments

@dragGH102
Copy link

I managed to adapt this started template to the project I'm currently working on.

Both work correctly:

  • gulp serve-dev
  • gulp serve-build

However I can't manage to set production environment:

 NODE_ENV=production && gulp serve-build # or NODE_ENV="production" && gulp serve-build

still prints:

Current environment: development
Change environment via --env or NODE_ENV

  gulp serve-dev --env production # or gulp --env production serve-dev

returns this error:

Task 'serve-build' is not in your gulpfile

Any clue?
Thanks in advance

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
@dragGH102 and others