Commit 6f117ecf authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by Guillermo Rauch

Set default NODE_ENV value. (#768)

parent 87671656
#!/usr/bin/env node
import { resolve, join } from 'path'
import { existsSync } from 'fs'
import parseArgs from 'minimist'
import build from '../server/build'
import { printAndExit } from '../lib/utils'
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help'
......
......@@ -6,6 +6,8 @@ import { existsSync } from 'fs'
import Server from '../server'
import { printAndExit } from '../lib/utils'
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
......
......@@ -5,6 +5,8 @@ import parseArgs from 'minimist'
import Server from '../server'
import { existsSync } from 'fs'
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const argv = parseArgs(process.argv.slice(2), {
alias: {
h: 'help',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment