1.0.0 • Published 8 years ago

yxq-antd v1.0.0

Weekly downloads
4
License
MIT
Repository
-
Last release
8 years ago

PDA

部署说明

环境依赖

  • node > 4.2.0
  • npm > 3.0.0

安装 node 依赖

  • npm install

本地开发模式(使用 node 作为 web 服务器)

  • npm run start

启动成功后,直接访问 http://localhost:3000

接口地址 可以直接在 config/environments.js 里配置服务器地址 (防止跨域)

代码校验

  • npm run lint:fix

编译代码

  • npm run deploy:prod

单元测试

  • npm run test

nginx 配置参考

upstream api {
        server 172.16.216.48:8080;
}

server {
        listen 80;
        server_name pda-dev.wz-inc.com;
        location / {
                root /home/www/crystal/dist/;
                index index.html index.htm;
                try_files $uri $uri/ /index.html;
        }
        location ~ api\/ {
                proxy_pass http://api;
        }
}