Skip to content

Commit

Permalink
fix: NODE_ENV is not being passed down to child processes (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygolba committed May 22, 2016
1 parent c9f2aef commit 8837cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/cli/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function serve(port = 4000) {
logger.log(`Starting Lux Server with ${cyan(`${total}`)} worker processes`);

for (let i = 0; i < total; i++) {
cluster.fork().once('message', msg => {
cluster.fork({ NODE_ENV }).once('message', msg => {
if (msg === 'ready') {
current++;
if (current === total) {
Expand Down

0 comments on commit 8837cb5

Please sign in to comment.