{"id":24780402,"url":"https://github.com/webgriffe/deployer-magento2","last_synced_at":"2025-10-12T04:31:13.480Z","repository":{"id":62547753,"uuid":"104872223","full_name":"webgriffe/deployer-magento2","owner":"webgriffe","description":"Deployer recipe for Magento 2 project","archived":false,"fork":false,"pushed_at":"2021-05-17T10:40:25.000Z","size":16,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-03T01:55:51.591Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webgriffe.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":"2017-09-26T10:42:56.000Z","updated_at":"2025-05-28T03:24:50.000Z","dependencies_parsed_at":"2022-11-02T22:30:29.723Z","dependency_job_id":null,"html_url":"https://github.com/webgriffe/deployer-magento2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webgriffe/deployer-magento2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fdeployer-magento2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fdeployer-magento2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fdeployer-magento2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fdeployer-magento2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/deployer-magento2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fdeployer-magento2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010259,"owners_count":26084719,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-29T10:30:22.044Z","updated_at":"2025-10-12T04:31:13.158Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Magento 2 Deployer Recipe\n===========================\n\nDeployer recipe for Magento 2 project.\nThis adds some useful tasks for db and media operations and it overrides some \n\nInstall\n-------\n\nInstall it using Composer:\n\n\t$ composer require --dev webgriffe/deployer-magento2 dev-master\n\t\nUsage\n-----\n\nRequire the recipe in your `deploy.php`:\n\n```php\n\nnamespace Deployer;\n\nrequire __DIR__ . '/vendor/webgriffe/deployer-magento2/magento.php';\n\n// ... usual Deployer configuration\n```\n\n\nThis recipe overrides some tasks of the original Deployer Magento2 recipe:\n\n* The tasks `deploy:magento` and `deploy` now do not enable and disable the maintenance page. Instead, if you want to do that you must use one of two new tasks `deploy:magento-maintenance` and `deploy-maintenance`.\n* The task `magento:deploy:assets` now uses the `assets_locales` environment variable that you can define in your deploy.php file like this:\n    ```php\n    set('assets_locales', 'en_GB en_US it_IT'); \n    ```\n* The task `deploy:resetOPCache` called inside `deploy` and `deploy:maintenance` uses variable base_url that you can define in your deploy.php file like this:\n     ```php\n     server('staging', 'my.server.com')\n         -\u003euser('myUser')\n         -\u003eset('deploy_path', '/path/to/public_html')\n         -\u003eset('http_user', 'myUser')\n         -\u003eset('http_group', 'myGroup')\n         -\u003eset('base_url', 'http://myBaseUrl.com/')\n         -\u003estage('staging');\n     ```\nIt also adds the `magento:first-deploy` task which is useful when depoying a project for the first time (when Magento is not installed).\n\nMagento useful tasks\n--------------------\n\nThis recipe provides some Magento's related tasks:\n\n* `magento:db-dump`: creates a gzipped database dump on the remote stage in the deploy user's home directory\n* `magento:db-pull`: pulls database from the remote stage to local environment\n* `magento:media-pull`: pulls Magento media from the remote stage to local environment\n  * With the `media_pull_exclude_dirs` environment variable it's possible to specify which sub-directories of the media dir you want to exclude. Usage example:\n    \n    ```php\n    add('media_pull_exclude_dirs', ['wysiwyg']);\n    ```\n  * You can specify the execution timeout for this task by using the `media-pull-timeout` argument while running the command. This is needed because the default execution's time for the tasks on deployer is of 300s and when you first run this command it could take a while if the media directory is big (or maybe after a huge import). Usage example:\n    \n    ```\n    dep magento:media-pull --media-pull-timeout 900\n    ```\n\n\nLicense\n-------\n\nThis library is under the MIT license. See the complete license in the LICENSE file.\n\nCredits\n-------\n\nDeveloped by [Webgriffe®](http://www.webgriffe.com/). Please, report to us any bug or suggestion by GitHub issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fdeployer-magento2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Fdeployer-magento2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fdeployer-magento2/lists"}