{"id":16229987,"url":"https://github.com/rafaelstz/deployer-magento2","last_synced_at":"2025-04-13T06:37:15.497Z","repository":{"id":41243356,"uuid":"141476011","full_name":"rafaelstz/deployer-magento2","owner":"rafaelstz","description":"⚙️ Deploy your Magento 2 faster and easier with this Deployer Recipe.","archived":false,"fork":false,"pushed_at":"2023-09-21T15:08:16.000Z","size":235,"stargazers_count":51,"open_issues_count":13,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T11:05:48.525Z","etag":null,"topics":["automation","continuous-deployment","deploy","deployer","hacktoberfest","magento","magento2","pipelines"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/rafaelstz/deployer-magento2","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/rafaelstz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["rafaelstz"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"custom":"https://www.buymeacoffee.com/rafaelcg"}},"created_at":"2018-07-18T18:42:29.000Z","updated_at":"2025-02-10T17:51:26.000Z","dependencies_parsed_at":"2023-09-21T19:01:35.064Z","dependency_job_id":null,"html_url":"https://github.com/rafaelstz/deployer-magento2","commit_stats":{"total_commits":150,"total_committers":6,"mean_commits":25.0,"dds":0.14,"last_synced_commit":"9be4ed31e838aa4b11198935a626d1d585b9867d"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magento2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magento2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magento2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magento2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelstz","download_url":"https://codeload.github.com/rafaelstz/deployer-magento2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675337,"owners_count":21143763,"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":["automation","continuous-deployment","deploy","deployer","hacktoberfest","magento","magento2","pipelines"],"created_at":"2024-10-10T12:59:46.366Z","updated_at":"2025-04-13T06:37:15.468Z","avatar_url":"https://github.com/rafaelstz.png","language":"PHP","funding_links":["https://github.com/sponsors/rafaelstz","https://www.buymeacoffee.com/rafaelcg"],"categories":[],"sub_categories":[],"readme":"# Deployer Magento 2 recipe\n\n[![Build Status](https://app.travis-ci.com/rafaelstz/deployer.svg?branch=master)](https://app.travis-ci.com/rafaelstz/deployer)\n[![Tags](https://img.shields.io/github/tag/rafaelstz/deployer-magento2.svg)](https://github.com/rafaelstz/deployer-magento2/releases)\n\u003ca href=\"https://packagist.org/packages/rafaelstz/deployer-magento2\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/rafaelstz/deployer-magento2.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\nEasy tool to deploy and run automated commands in your Magento 2 servers.\n\nHow to install\n-------\n\nHow to install [Deployer](https://deployer.org/):\n\n```\ncurl -LO https://deployer.org/deployer.phar \u0026\u0026 sudo mv deployer.phar /usr/local/bin/dep \u0026\u0026 sudo chmod +x /usr/local/bin/dep\n```\n\nHow to install this **Magento 2 recipe**:\n\n```\ncomposer require rafaelstz/deployer-magento2 --dev\n```\n\nHow to use\n-----\n\nFirst of all, go to your project folder, then create a file called `deploy.php`. Inside of this file you can use this example below, modifying the values according with your project and server configurations.\n\n```php\n\u003c?php\n\nnamespace Deployer;\nrequire_once __DIR__ . '/vendor/rafaelstz/deployer-magento2/deploy.php';\n\n// Project\nset('application', 'My Project Name');\nset('repository', 'git@bitbucket.org:lesite/my-project.git');\nset('default_stage', 'staging');\n//set('languages', 'en_US pt_BR');\n//set('verbose', '-v');\n\n// Env Configurations\nset('php', '/usr/bin/php70');\nset('magerun', '/usr/bin/n98-magerun2');\nset('composer', '/usr/bin/composer');\n\n// Project Configurations\nhost('my-store.com')\n    -\u003ehostname('iuse.magemojo.com')\n    -\u003euser('my-user')\n    -\u003eport(22)\n    -\u003eset('deploy_path', '/home/my-project-folder')\n    -\u003eset('branch', 'master')\n    -\u003eset('is_production', 1)\n    -\u003estage('staging')\n    -\u003eroles('master')\n    // -\u003econfigFile('~/.ssh/config')\n    -\u003eidentityFile('~/.ssh/id_rsa')\n    -\u003eaddSshOption('UserKnownHostsFile', '/dev/null')\n    -\u003eaddSshOption('StrictHostKeyChecking', 'no');\n```\n\n**Just add this code below too if you don't want to use releases and symlinks**\n\n```php\nset('release_path', \"{{deploy_path}}\");\ndesc('Deploying...');\ntask('deploy', [\n    'deploy:info',\n    'deploy:lock',\n    'magento:maintenance:enable',\n    'git:update_code',\n    'composer:install',\n    'deploy:magento',\n    'magento:maintenance:disable',\n    'deploy:unlock',\n    'success'\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelstz%2Fdeployer-magento2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelstz%2Fdeployer-magento2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelstz%2Fdeployer-magento2/lists"}