{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/recipes/issues/10","labels_url":"https://api.github.com/repos/deployphp/recipes/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/recipes/issues/10/comments","events_url":"https://api.github.com/repos/deployphp/recipes/issues/10/events","html_url":"https://github.com/deployphp/recipes/pull/10","id":87005033,"number":10,"title":"Adds a Rsync recipe, basis for performing repository-related tasks locally","user":{"login":"johnny-bit","id":10687765,"avatar_url":"https://avatars.githubusercontent.com/u/10687765?v=3","gravatar_id":"","url":"https://api.github.com/users/johnny-bit","html_url":"https://github.com/johnny-bit","followers_url":"https://api.github.com/users/johnny-bit/followers","following_url":"https://api.github.com/users/johnny-bit/following{/other_user}","gists_url":"https://api.github.com/users/johnny-bit/gists{/gist_id}","starred_url":"https://api.github.com/users/johnny-bit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnny-bit/subscriptions","organizations_url":"https://api.github.com/users/johnny-bit/orgs","repos_url":"https://api.github.com/users/johnny-bit/repos","events_url":"https://api.github.com/users/johnny-bit/events{/privacy}","received_events_url":"https://api.github.com/users/johnny-bit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T15:19:08Z","updated_at":"2015-06-11T10:46:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deployphp/recipes/pulls/10","html_url":"https://github.com/deployphp/recipes/pull/10","diff_url":"https://github.com/deployphp/recipes/pull/10.diff","patch_url":"https://github.com/deployphp/recipes/pull/10.patch"},"body":"# Rsync recipe\r\n\r\n### Installing\r\n\r\n```php\r\n// deploy.php\r\n\r\nrequire 'vendor/deployphp/recipes/recipes/rsync.php';\r\n```\r\n\r\n### Configuration options\r\n\r\n- **rsync_excludes** *(optional)*: accepts a *array* with files/dirs to be excluded from sending to server\r\n- **rsync_user** *(optional)*: accepts a *string* with username to server\r\n- **rsync_local_release_dir** *(optional)*: accepts a *string* with dirname where temporary repository cloning should take place before being sent to server\r\n\r\n```php\r\n// deploy.php\r\n\r\nset('rsync_excludes', [\r\n    '.git',\r\n    'deployer_release',\r\n    'releases',\r\n    'deploy.php',\r\n]);\r\n\r\nset('rsync_user', 'server_user');\r\n\r\nset('rsync_local_release_dir', '/tmp');\r\n```\r\n\r\n### Tasks\r\n\r\n- `deploy:local_release` Creates local release directory\r\n- `deploy:update_code` overrides standard `deploy:update_code` to update code locally instead of remotelly\r\n- `deploy:rsync` perorms rsync from local release to remote\r\n\r\n### Suggested Usage\r\n\r\nThis recipe performs all repository-related tasks locally, so the best way to use it, would be to use this instead of `common.php` recipe.\r\n\r\nFor using composer or other tools, You'd need to override `deploy:vendors` task and plug it in `deploy` chain.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/deployphp/recipes/issues/comments/111083051","html_url":"https://github.com/deployphp/recipes/pull/10#issuecomment-111083051","issue_url":"https://api.github.com/repos/deployphp/recipes/issues/10","id":111083051,"user":{"login":"elfet","id":141232,"avatar_url":"https://avatars.githubusercontent.com/u/141232?v=3","gravatar_id":"","url":"https://api.github.com/users/elfet","html_url":"https://github.com/elfet","followers_url":"https://api.github.com/users/elfet/followers","following_url":"https://api.github.com/users/elfet/following{/other_user}","gists_url":"https://api.github.com/users/elfet/gists{/gist_id}","starred_url":"https://api.github.com/users/elfet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfet/subscriptions","organizations_url":"https://api.github.com/users/elfet/orgs","repos_url":"https://api.github.com/users/elfet/repos","events_url":"https://api.github.com/users/elfet/events{/privacy}","received_events_url":"https://api.github.com/users/elfet/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T10:46:37Z","updated_at":"2015-06-11T10:46:37Z","body":"Does this recipe works then you trying to deploy multiple servers in parallel?"}}