{"action":"created","issue":{"url":"https://api.github.com/repos/meolu/walle-web/issues/68","labels_url":"https://api.github.com/repos/meolu/walle-web/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/meolu/walle-web/issues/68/comments","events_url":"https://api.github.com/repos/meolu/walle-web/issues/68/events","html_url":"https://github.com/meolu/walle-web/issues/68","id":119425106,"number":68,"title":"hook文档错误","user":{"login":"Liv1020","id":5382358,"avatar_url":"https://avatars.githubusercontent.com/u/5382358?v=3","gravatar_id":"","url":"https://api.github.com/users/Liv1020","html_url":"https://github.com/Liv1020","followers_url":"https://api.github.com/users/Liv1020/followers","following_url":"https://api.github.com/users/Liv1020/following{/other_user}","gists_url":"https://api.github.com/users/Liv1020/gists{/gist_id}","starred_url":"https://api.github.com/users/Liv1020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liv1020/subscriptions","organizations_url":"https://api.github.com/users/Liv1020/orgs","repos_url":"https://api.github.com/users/Liv1020/repos","events_url":"https://api.github.com/users/Liv1020/events{/privacy}","received_events_url":"https://api.github.com/users/Liv1020/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-30T06:04:51Z","updated_at":"2015-11-30T14:02:21Z","closed_at":null,"body":"pre_deploy文档是pull代码之前，但是我使用的时候是pull代码之后，post_deploy而是sync目标服务器的relaese文件夹的时候，是文档错误了吧"},"comment":{"url":"https://api.github.com/repos/meolu/walle-web/issues/comments/160638511","html_url":"https://github.com/meolu/walle-web/issues/68#issuecomment-160638511","issue_url":"https://api.github.com/repos/meolu/walle-web/issues/68","id":160638511,"user":{"login":"meolu","id":4423821,"avatar_url":"https://avatars.githubusercontent.com/u/4423821?v=3","gravatar_id":"","url":"https://api.github.com/users/meolu","html_url":"https://github.com/meolu","followers_url":"https://api.github.com/users/meolu/followers","following_url":"https://api.github.com/users/meolu/following{/other_user}","gists_url":"https://api.github.com/users/meolu/gists{/gist_id}","starred_url":"https://api.github.com/users/meolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meolu/subscriptions","organizations_url":"https://api.github.com/users/meolu/orgs","repos_url":"https://api.github.com/users/meolu/repos","events_url":"https://api.github.com/users/meolu/events{/privacy}","received_events_url":"https://api.github.com/users/meolu/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T14:02:21Z","updated_at":"2015-11-30T14:02:21Z","body":"@Liv1020 \r\n\r\n在pre_deploy里其实也是可以做这样的事情，只是代码都没有检出而已，也就是说没有`.env.dist`。脚本可以优化成这样：\r\n```\r\ncd {WORKSPACE}\r\ncp .env.dist .env\r\n```\r\n\r\n {WORKSPACE}在宿主机代表着检出的目录，也就是：`/home/deploy/prod/project`\r\n\r\n另，如果代码是最新的话，流程肯定没有问题的。"}}