課程
/前端開發(fā)
/Node.js
/node建站攻略(二期)——網(wǎng)站升級
用了grunt 后入口的 app.js 對端口的操作不用屏蔽嗎?我怎么運行后一直 waiting... 頁面也打不開
2017-06-24
源自:node建站攻略(二期)——網(wǎng)站升級 2-1
正在回答
解決了,太厲害了
你可以去看下nodemon的文檔https://www.npmjs.com/package/grunt-concurrent
把 app.js移到script屬性里
nodemon: {
dev: {
script: 'app.js',
options: {
args: [],
ignoredFiles: ['README.md','node_modules/**','.DS_Store'],
watchedExtensions: ['js'],
watchedFolder: ['app','config'],
debug: true,
delayTime: 1,
env: {
PORT: 3000
},
cwd: __dirname
}
幫頂吧。。
舉報
幫助你深入前后端開發(fā)留下的迷惑,為進一步自學(xué)打下基礎(chǔ)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-10-10
解決了,太厲害了
2017-08-05
你可以去看下nodemon的文檔https://www.npmjs.com/package/grunt-concurrent
把 app.js移到script屬性里
nodemon: {
dev: {
script: 'app.js',
options: {
args: [],
ignoredFiles: ['README.md','node_modules/**','.DS_Store'],
watchedExtensions: ['js'],
watchedFolder: ['app','config'],
debug: true,
delayTime: 1,
env: {
PORT: 3000
},
cwd: __dirname
}
}
},
2017-06-27
幫頂吧。。