johnpapa / gulp-patterns

Playground for Gulp Recipes
501 stars 146 forks source link

Production Deployment #112

Open kevinsherman opened 8 years ago

kevinsherman commented 8 years ago

Hey John - Great course - entertaining and educational as always. One question - what's the deployment strategy? running gulp build (or it's variants) - only outputs the client-side code to the build folder. What's the process/strategy for deploying the server-side code as well?

zirho commented 8 years ago

Hi, In my understanding, you can just deploy the repository to heroku after build it.

https://devcenter.heroku.com/articles/nodejs-support as you can see there, you should NODE_ENV set to 'build' (default is 'production' but in gulp-patterns, he used 'build') so express serves build/ location on the production server.