{"id":13518518,"url":"https://github.com/jalogut/magento2-deployer-plus","last_synced_at":"2025-12-13T06:51:37.200Z","repository":{"id":45234275,"uuid":"122631849","full_name":"jalogut/magento2-deployer-plus","owner":"jalogut","description":"Tool based on deployer.org to perform zero downtime deployments of Magento 2 projects","archived":false,"fork":false,"pushed_at":"2022-10-03T07:37:24.000Z","size":98,"stargazers_count":203,"open_issues_count":13,"forks_count":60,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-24T02:48:24.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jalogut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-23T14:30:48.000Z","updated_at":"2025-03-13T09:50:48.000Z","dependencies_parsed_at":"2022-07-16T15:00:49.904Z","dependency_job_id":null,"html_url":"https://github.com/jalogut/magento2-deployer-plus","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalogut%2Fmagento2-deployer-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalogut%2Fmagento2-deployer-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalogut%2Fmagento2-deployer-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalogut%2Fmagento2-deployer-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jalogut","download_url":"https://codeload.github.com/jalogut/magento2-deployer-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246453661,"owners_count":20779991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-01T05:01:45.764Z","updated_at":"2025-12-13T06:51:32.176Z","avatar_url":"https://github.com/jalogut.png","language":"PHP","funding_links":[],"categories":["PHP","Open Source Extensions"],"sub_categories":["Deployment"],"readme":"# Magento 2 Deployer Plus\n\n[![Build Status](https://travis-ci.com/jalogut/magento2-deployer-plus.svg?branch=develop)](https://travis-ci.com/jalogut/magento2-deployer-plus)\n\n* Reliable fully-automated deployments tool for Magento 2.\n* Zero downtime deployments on Magento versions \u003e= 2.2\n* Automating your deployments is as easy as defining the servers where you want to deploy to.\n\n## Motivation\n\nThis project aims to offer a common solution for fully-automated deployments on all versions of Magento 2.\nThis tool uses the well known [Deployer](https://deployer.org) and adds specific recipes for each Magento 2 version.\n\n## Important Features\n\n* [Deployer](https://deployer.org) code syntax\n* Super easy setup\n* Deploy to multiple servers\n* Zero Downtime (only Magento \u003e= 2.2)\n* Build and Deploy artifacts (only Magento \u003e= 2.2)\n* Secure rollbacks (only Magento \u003e= 2.2)\n\n## Installation\n\n```\ncomposer require \"jalogut/magento2-deployer-plus\"\n```\n\n## Setup\n\n### Magento \u003e= 2.1\n\n```\ncp \u003cvendor_dir\u003e/jalogut/magento2-deployer-plus/deploy.php.sample_2_1 deploy.php\n```\n\n### Magento \u003e= 2.2\n\n```\ncp \u003cvendor_dir\u003e/jalogut/magento2-deployer-plus/deploy.php.sample_2_2 deploy.php\n```\n\n### Magento \u003e= 2.2.5\n\n```\ncp \u003cvendor_dir\u003e/jalogut/magento2-deployer-plus/deploy.php.sample_2_2_5 deploy.php\n```\n\n## Usage\n\n### Git deploys:\n\n```\n\u003cbin_dir\u003e/dep deploy [\u003cstage\u003e]\n```\n\n### Build artifact deploys: (only Magento \u003e= 2.2)\n\n```\n\u003cbin_dir\u003e/dep build\n\u003cbin_dir\u003e/dep deploy-artifact [\u003cstage\u003e]\n```\n\n## Disclaimer\n\n### Build command\nBuild command can only be used if config propagation is properly configured. See Magento DevDocs:\n\n* [Propagate config accross systems](http://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-config-mgmt-export.html)\n\nAlso check `app:config:dump` issue and workaround here:\n\n* [PR #12410](https://github.com/magento/magento2/pull/12410)\n* [Gist workaround](https://gist.github.com/jalogut/d72e0af6e10c502bff90423e66bf07b9)\n\n## Troubleshooting\n\n#### Js translations missing (magento versions \u003e=2.1.3 \u003c2.2.1)\n\n*  **Problem**: Known Magento issue when executing `setup:static-content:deploy` for several languages.\n\n* **Github Issues**:\n\t* [7862](https://github.com/magento/magento2/issues/7862)\n\t* [10673](https://github.com/magento/magento2/issues/10673)\n\n* **Solution**: Until that gets fixed in `2.2.1`, the only workaround is to execute `setup:static-content:deploy` individually for each language: \n\n\t```php\n\t// deploy.php\n\ttask('files:static_assets', '\n\t\t{{bin/php}} {{magento_bin}} setup:static-content:deploy en_US {{static_deploy_options}}\n\t\t{{bin/php}} {{magento_bin}} setup:static-content:deploy de_CH {{static_deploy_options}}\n\t\t{{bin/php}} {{magento_bin}} setup:static-content:deploy fr_FR {{static_deploy_options}}\n\t');\n\t```\n\t\n#### Compilation error\n\n* **Solution**: Increase php `memory_limit` configuration to 728M o 1024M\n\n#### Static deploy error when setting a new template (if config propagation is not used)\n\n* **Problems**:\n    * `[LogicException] Unable to load theme by specified key: 'Template'`\n    * `@variable` is undefined in file\n* **Reason**: If a new template is set, running `setup:upgrade` is required before executing `setup:static-content:deploy`\n* **Solution**: Skip `setup:static-content:deploy` first time you deploy the new template:\n\n\t1. Temporary disable task `files:static_assets`\n\t\n\t\t```\n\t\t// deploy.php\n\t\ttask('files:static_assets')-\u003eonRoles('Skip');\n\t\t```\n\t\n\t2. Perform a new release\n\t3. Enable back `files:static_assets` on your `deploy.php` file\n\n\t\t* Remove `task('files:static_assets')-\u003eonRoles('Skip');`\n\t\t\n\t4. Manually execute `files:static_assets`\n\t\n\t\t```\n\t\t\u003cbin_dir\u003e/dep files:static_assets [\u003cstage\u003e]\n\t\t```\t\n\t    \n    After that, future deployments will work without issues\n\n## Prerequisites\n\n- PHP \u003e= 7.0.8\n- MAGENTO \u003e= 2.1\n\n## ChangeLog\n\n[CHANGELOG.md](CHANGELOG.md)\n\n## Developers\n\n* [Juan Alonso](https://github.com/jalogut)\n* [Oscar Recio](https://github.com/osrecio)\n* [Contributors](https://github.com/jalogut/magento2-deployer-plus/graphs/contributors)\n\nLicence\n-------\n[GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0)\n\nCopyright\n---------\n(c) Juan Alonso \u003cjuan.jalogut@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalogut%2Fmagento2-deployer-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjalogut%2Fmagento2-deployer-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalogut%2Fmagento2-deployer-plus/lists"}