{"action":"created","issue":{"url":"https://api.github.com/repos/zuiidea/antd-admin/issues/269","repository_url":"https://api.github.com/repos/zuiidea/antd-admin","labels_url":"https://api.github.com/repos/zuiidea/antd-admin/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/zuiidea/antd-admin/issues/269/comments","events_url":"https://api.github.com/repos/zuiidea/antd-admin/issues/269/events","html_url":"https://github.com/zuiidea/antd-admin/issues/269","id":227313483,"number":269,"title":"项目部署","user":{"login":"zuiidea","id":16070518,"avatar_url":"https://avatars1.githubusercontent.com/u/16070518?v=3","gravatar_id":"","url":"https://api.github.com/users/zuiidea","html_url":"https://github.com/zuiidea","followers_url":"https://api.github.com/users/zuiidea/followers","following_url":"https://api.github.com/users/zuiidea/following{/other_user}","gists_url":"https://api.github.com/users/zuiidea/gists{/gist_id}","starred_url":"https://api.github.com/users/zuiidea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuiidea/subscriptions","organizations_url":"https://api.github.com/users/zuiidea/orgs","repos_url":"https://api.github.com/users/zuiidea/repos","events_url":"https://api.github.com/users/zuiidea/events{/privacy}","received_events_url":"https://api.github.com/users/zuiidea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2017-05-09T10:02:33Z","updated_at":"2017-06-20T16:02:33Z","closed_at":null,"body":"因为项目中使用到了`browserHistory`，所以build之后需要部署到服务器上\r\n\r\nnginx配置示例：\r\n\r\n```\r\nserver\r\n\t{\r\n\t\tlisten       666;\r\n\t\tserver_name 47.92.30.98;\r\n\t\troot  /home/www/antd-admin/dist;\r\n\r\n\t\tlocation /api {\r\n\t\t\t proxy_pass http://localhost:8000/api;\r\n\t\t}\r\n\r\n\t\tlocation / {\r\n\t\t\t\tindex  index.html;\r\n\t\t\t\ttry_files $uri $uri/ /index.html;\r\n\t\t}\r\n\t}\r\n```\r\n\r\n演示地址：http://47.92.30.98:666"},"comment":{"url":"https://api.github.com/repos/zuiidea/antd-admin/issues/comments/309806630","html_url":"https://github.com/zuiidea/antd-admin/issues/269#issuecomment-309806630","issue_url":"https://api.github.com/repos/zuiidea/antd-admin/issues/269","id":309806630,"user":{"login":"eddiebai","id":20298142,"avatar_url":"https://avatars1.githubusercontent.com/u/20298142?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiebai","html_url":"https://github.com/eddiebai","followers_url":"https://api.github.com/users/eddiebai/followers","following_url":"https://api.github.com/users/eddiebai/following{/other_user}","gists_url":"https://api.github.com/users/eddiebai/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiebai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiebai/subscriptions","organizations_url":"https://api.github.com/users/eddiebai/orgs","repos_url":"https://api.github.com/users/eddiebai/repos","events_url":"https://api.github.com/users/eddiebai/events{/privacy}","received_events_url":"https://api.github.com/users/eddiebai/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T16:02:33Z","updated_at":"2017-06-20T16:02:33Z","body":"@henryzp nginx配置文件里面的  proxy_pass http://localhost:8000/api;    ---这个服务从哪来的？怎么配置啊？"}}
{"actor":{"display_login":"eddiebai"}}