1
int30xcc 2015-10-27 17:19:30 +08:00
启动项目
pm2 start 项目启动文件.js --name 别名 列出项目 pm2 list 这样试一下? |
2
20140930 OP @int30xcc https://github.com/wxt2005/bangumi-list/blob/master/package.json
"scripts": { "start": "npm run serve | npm run dev", "deploy": "NODE_ENV=production webpack -p && npm run clean:dist && npm run rename:build", "serve": "http-server -p 8080", "clean:dist": "rm -rf dist", "rename:build": "mv build/ dist/", "dev": "webpack-dev-server --progress --colors --hot --port 8090 --host 0.0.0.0", "lodash": "lodash include=isEmpty,size,map,each,chain,sortByAll,sortBy,value,filter,assign,merge,every,forIn,isArray exports=node -d -o src/js/lib/lodash.custom.js" }, "main": "./src/js/main.js", "author": "[email protected]", "license": "MIT", "devDependencies": 这里没看到启动文件的.js 啊 我之前的帖子里说 pm2 start webpack.config.js 有人也说错的啊 |
3
20140930 OP 已解决,装个 nginx 把网页目录制定到这个文件夹就解决了。
|