{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/327","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/327/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/327/events","html_url":"https://github.com/deployphp/deployer/pull/327","id":86803903,"number":327,"title":"Make sure cache dir is writable after cache warmup","user":{"login":"ihsanudin","id":7464920,"avatar_url":"https://avatars.githubusercontent.com/u/7464920?v=3","gravatar_id":"","url":"https://api.github.com/users/ihsanudin","html_url":"https://github.com/ihsanudin","followers_url":"https://api.github.com/users/ihsanudin/followers","following_url":"https://api.github.com/users/ihsanudin/following{/other_user}","gists_url":"https://api.github.com/users/ihsanudin/gists{/gist_id}","starred_url":"https://api.github.com/users/ihsanudin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihsanudin/subscriptions","organizations_url":"https://api.github.com/users/ihsanudin/orgs","repos_url":"https://api.github.com/users/ihsanudin/repos","events_url":"https://api.github.com/users/ihsanudin/events{/privacy}","received_events_url":"https://api.github.com/users/ihsanudin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deployphp/deployer/labels/discuss","name":"discuss","color":"f7c6c7"},{"url":"https://api.github.com/repos/deployphp/deployer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T02:15:20Z","updated_at":"2015-06-10T04:55:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deployphp/deployer/pulls/327","html_url":"https://github.com/deployphp/deployer/pull/327","diff_url":"https://github.com/deployphp/deployer/pull/327.diff","patch_url":"https://github.com/deployphp/deployer/pull/327.patch"},"body":"Make sure cache dir is writable after cache warmup. This helpul if you use not web server user to execute deploy"},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/110588361","html_url":"https://github.com/deployphp/deployer/pull/327#issuecomment-110588361","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/327","id":110588361,"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-10T04:55:11Z","updated_at":"2015-06-10T04:55:11Z","body":"I don't think this is good solution to have two same tasks:\r\n```php\r\ntask('deploy', [\r\n     'deploy:prepare',\r\n     'deploy:release',\r\n     'deploy:update_code',\r\n     'deploy:create_cache_dir',\r\n     'deploy:shared',\r\n     'deploy:writable',  // HERE\r\n     'deploy:assets',\r\n     'deploy:vendors',\r\n     'deploy:assetic:dump',\r\n     'deploy:cache:warmup',\r\n    'deploy:writable', // AND HERE\r\n     'deploy:symlink',\r\n     'cleanup',\r\n ])->desc('Deploy your project');\r\n```\r\nIf you want you can do you own check with `after`:\r\n```php\r\nafter('deploy:cache:warmup', 'check_wtitable_dirs');\r\n```"}}