Skip to content

Commit

Permalink
修改readme和package.json文件
Browse files Browse the repository at this point in the history
  • Loading branch information
tywei90 committed Jan 16, 2018
1 parent dc53ea9 commit 8084796
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ npm run build //编译文件到build目录下,打包到磁盘里,对应4000
```
打开浏览器输入http://localhost:4000

**注意**
**注意**

1、线上项目的server端采用pm2管理,在开发环境推荐[nodemon](https://github.com/remy/nodemon/),需要全局安装。不推荐supervisor,代码错误会一直报错,而且不能选择监控目录。本地调试后台,需要修改package.json里的scripts.server属性为`nodemon --watch server server/pagemaker`

2、我们的html模板采用[pug](https://pugjs.org/api/getting-started.html),首页的模板在views文件夹下的genpages.pug文件。`https://pagemaker.wty90.com/public/main.js`为线上的js地址,如果是本地调试pc页面,改成`http://127.0.0.1:8080/public/main.js`,css文件一样。如果是调试手机页面或者其他电脑上,改成`http://your_ip_address:4000/public/main.js`。当然,需要先打包修改的代码。
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "pagemake",
"version": "0.0.1",
"name": "pagemaker",
"version": "1.0.0",
"private": true,
"description": "立马理财页面制作工具项目",
"description": "前端页面制作工具",
"scripts": {
"dev": "cross-env NODE_ENV=development && webpack-dev-server --devtool --progress",
"server": "pm2 start ./server/pagemaker",
"build": "cross-env NODE_ENV=production && webpack -p"
},
"repository": {
"type": "git",
"url": ".."
"url": "https://github.com/tywei90/pagemaker_production"
},
"author": "luckykun",
"author": "tywei",
"license": "MIT",
"devDependencies": {
"autoprefixer": "^6.4.0",
Expand Down

0 comments on commit 8084796

Please sign in to comment.