{"action":"opened","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/1680","repository_url":"https://api.github.com/repos/deployphp/deployer","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/1680/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/1680/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/1680/events","html_url":"https://github.com/deployphp/deployer/issues/1680","id":354121395,"node_id":"MDU6SXNzdWUzNTQxMjEzOTU=","number":1680,"title":"Custom Path","user":{"login":"ASC","id":4623934,"node_id":"MDQ6VXNlcjQ2MjM5MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4623934?v=4","gravatar_id":"","url":"https://api.github.com/users/ASC","html_url":"https://github.com/ASC","followers_url":"https://api.github.com/users/ASC/followers","following_url":"https://api.github.com/users/ASC/following{/other_user}","gists_url":"https://api.github.com/users/ASC/gists{/gist_id}","starred_url":"https://api.github.com/users/ASC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASC/subscriptions","organizations_url":"https://api.github.com/users/ASC/orgs","repos_url":"https://api.github.com/users/ASC/repos","events_url":"https://api.github.com/users/ASC/events{/privacy}","received_events_url":"https://api.github.com/users/ASC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-26T19:30:18Z","updated_at":"2018-08-26T19:30:18Z","closed_at":null,"author_association":"NONE","body":"| Q                 | A\r\n| ----------------- | ---\r\n| Issue Type        | Question\r\n| Deployer Version  | 6.20\r\n| Local Machine OS  | macOS 01.13.6 \r\n| Remote Machine OS | N/A\r\n\r\n### Description \r\n*If you're reporting a bug, please include following information*\r\n\r\n### Steps to reproduce\r\nHello all - apologies if this is a duplicated question. \r\nMy repo is such that the folder I want to deploy to the server is not the root, rather the Laravel project is within a folder one level down from the root repo directory. \r\n\r\nHow can I specify this in the deployer config?\r\nI see I can set server deploy path but what I am looking for is the equivalent local machine option. \r\n\r\nThanks in advance :) \r\n\r\n### Content of `deploy.php`\r\n```php\r\n<?php\r\nnamespace Deployer;\r\n\r\nrequire 'recipe/laravel.php';\r\n\r\n// Project name\r\nset('application', 'ProjectName');\r\n\r\n// Project repository\r\nset('repository', 'git@github.com:ASC/MyProject.git');\r\n\r\n// [Optional] Allocate tty for git clone. Default value is false.\r\nset('git_tty', true); \r\n\r\n// Shared files/dirs between deploys \r\nadd('shared_files', []);\r\nadd('shared_dirs', []);\r\n\r\n// Writable dirs by web server \r\nadd('writable_dirs', []);\r\n\r\n\r\n// Hosts\r\n\r\nhost('myhost.co.uk')\r\n    ->set('deploy_path', '/var/www/project/public_html');\r\n    \r\n// Tasks\r\n\r\ntask('build', function () {\r\n    run('cd {{release_path}} && build');\r\n});\r\n\r\n// [Optional] if deploy fails automatically unlock.\r\nafter('deploy:failed', 'deploy:unlock');\r\n\r\n// Migrate database before symlink new release.\r\n\r\nbefore('deploy:symlink', 'artisan:migrate');\r\n\r\n\r\n```\r\n\r\n### Output log\r\nN/A\r\n"}}
{"actor":{"display_login":"ASC"}}