{"id":16772243,"url":"https://github.com/m-adamski/symfony-deployer-bundle","last_synced_at":"2026-05-15T20:32:37.430Z","repository":{"id":62520880,"uuid":"174145226","full_name":"m-adamski/symfony-deployer-bundle","owner":"m-adamski","description":"Bundle for Symfony for easier Deployer configuration","archived":false,"fork":false,"pushed_at":"2020-02-07T09:51:31.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T14:50:56.050Z","etag":null,"topics":["deployer-bundle","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-adamski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-06T12:55:01.000Z","updated_at":"2020-02-07T09:16:29.000Z","dependencies_parsed_at":"2022-11-02T14:46:11.007Z","dependency_job_id":null,"html_url":"https://github.com/m-adamski/symfony-deployer-bundle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/m-adamski/symfony-deployer-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-adamski%2Fsymfony-deployer-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-adamski%2Fsymfony-deployer-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-adamski%2Fsymfony-deployer-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-adamski%2Fsymfony-deployer-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-adamski","download_url":"https://codeload.github.com/m-adamski/symfony-deployer-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-adamski%2Fsymfony-deployer-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployer-bundle","php","symfony","symfony-bundle"],"created_at":"2024-10-13T06:30:46.546Z","updated_at":"2026-05-15T20:32:37.414Z","avatar_url":"https://github.com/m-adamski.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deployer Bundle for Symfony\n\nBundle for Symfony for easier Deployer configuration.\n\nThis bundle is compatible with Symfony 4.1 and Symfony 5.0. Symfony 3.4 compatibility abandoned.\n\n## Installation\n\nThis bundle can be installed by Composer:\n\n```bash\n$ composer require m-adamski/symfony-deployer-bundle\n$ composer require deployer/deployer --dev\n```\n\n## Deployer Configuration\n\nIn addition to installing this package, you must also create configuration files that it will use.\nYou can use the prepared script or create configuration files manually.\n\n**Automatically**\n\nRun the command from the root project directory:\n```bash\n$ vendor/bin/create-config\n```\n\n**Manually**\n\nCreate ``.deployer`` directory in your project's root directory. Then create four files in the newly added directory:\n\n* config.php\n* deployer.php\n* hosts.php\n* tasks.php\n\nComplete the files with default values and then adapt them to your requirements.\n\n``config.php``\n```php\n\u003c?php\n\nnamespace Deployer;\n\n/**\n * Global Configuration\n */\nset(\"application\", \"example-application\");\nset(\"repository\", \"git@github.com:m-adamski/example-application.git\");\nset(\"ssh_multiplexing\", false);\nset(\"git_tty\", false);\n\nset(\"shared_dirs\", [\"var/log\"]);\nset(\"shared_files\", [\".env.local\"]);\nset(\"writable_dirs\", [\"var\"]);\n\nset(\"sudo_password\", function () {\n    return askHiddenResponse(\"[sudo] password: \");\n});\n\nset(\"allow_anonymous_stats\", false);\n```\n\n``deployer.php``\n```php\n\u003c?php\n\nnamespace Deployer;\n\nrequire_once \"recipe/symfony4.php\";\nrequire_once __DIR__ . \"/config.php\";\nrequire_once __DIR__ . \"/hosts.php\";\nrequire_once __DIR__ . \"/tasks.php\";\n\n/**\n * Additional workflow events\n */\nbefore(\"deploy:writable\", \"deploy:writable:prepare\");\nafter(\"deploy:cache:warmup\", \"deploy:restart:php\");\nafter(\"deploy:failed\", \"deploy:unlock\");\n```\n\n``hosts.php``\n```php\n\u003c?php\n\nnamespace Deployer;\n\n/**\n * Hosts\n */\nhost(\"example.com\")\n    -\u003estage(\"production\")\n    -\u003euser(\"deployer\")\n    -\u003eidentityFile(__DIR__ . \"/.ssh/production/deployer_rsa\")\n    -\u003eaddSshOption(\"UserKnownHostsFile\", \"/dev/null\")\n    -\u003eaddSshOption(\"StrictHostKeyChecking\", \"no\")\n    -\u003eset(\"php_version\", \"php7.2-fpm\")\n    -\u003eset(\"deploy_path\", \"/var/www/vhosts/example.com\")\n    -\u003eset(\"branch\", \"master\");\n```\n\n``tasks.php``\n```php\n\u003c?php\n\nnamespace Deployer;\n\ntask(\"deploy:restart:php\", function () {\n    run(\"echo '{{ sudo_password }}' | sudo -S service {{ php_version }} restart\");\n})-\u003edesc(\"Restart PHP\");\n\ntask(\"deploy:writable:prepare\", function () {\n    $dirs = join(\" \", get(\"writable_dirs\"));\n\n    cd(\"{{ release_path }}\");\n    run(\"echo '{{ sudo_password }}' | sudo -S setfacl -RL -m mask:rwX $dirs\");\n})-\u003edesc(\"Prepare writable\");\n```\n\nThe last step is to make changes to the configuration files according to own needs.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-adamski%2Fsymfony-deployer-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-adamski%2Fsymfony-deployer-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-adamski%2Fsymfony-deployer-bundle/lists"}