lvarayut / relay-fullstack

:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
https://lvarayut.github.io/relay-fullstack/
MIT License
986 stars 126 forks source link

Added production enviornment #17

Closed jamesroseman closed 8 years ago

jamesroseman commented 8 years ago

I think it's valuable to be able to run the npm start script with either a production or development environment set. It's pretty common in production-level Node applications.

I also switched the default production port to 80, I thought it was strange my production app was running on 3000.

lvarayut commented 8 years ago

Thanks for your PR. However, running npm run deploy is much easier than NODE_ENV=production npm start.

jamesroseman commented 8 years ago

Sounds reasonable, thanks for taking a look!