Skip to content

Commit b32c5e0

Browse files
committed
tweaks
1 parent 6111b14 commit b32c5e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const gulp = require('gulp')
22
const nodemon = require('gulp-nodemon')
33
const browserSync = require('browser-sync').create()
4-
const config = require('./config/development')
4+
const config = require('./config/' + process.env.NODE_ENV)
55

66
/**
77
* 启动本地server

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"logs": "pm2 logs",
3434
"gui": "./node_modules/.bin/pm2-gui start ../../config/pm2-gui.ini",
3535
"debug": "node-debug ./bin/www",
36-
"live": "gulp browser-sync",
36+
"live": "cross-env NODE_ENV=development gulp browser-sync",
3737
"test": "./node_modules/mocha/bin/mocha",
3838
"lint": "./node_modules/.bin/eslint app.js server",
3939
"update": "ncu -u -a"

0 commit comments

Comments
 (0)