{"id":16230024,"url":"https://github.com/rafaelstz/deployer-magemojo","last_synced_at":"2025-03-19T14:30:26.688Z","repository":{"id":50246614,"uuid":"163906094","full_name":"rafaelstz/deployer-magemojo","owner":"rafaelstz","description":"With this MageMojo Stratus Deployer Recipe you can use the MageMojo's CLI power","archived":false,"fork":false,"pushed_at":"2023-11-23T15:17:56.000Z","size":28,"stargazers_count":9,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T19:42:03.857Z","etag":null,"topics":["cli","deploy","deployer","hosting","magento"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/rafaelstz/deployer-magemojo","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":null,"contributing":null,"funding":null,"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}},"created_at":"2019-01-03T01:03:43.000Z","updated_at":"2024-07-29T20:45:13.314Z","dependencies_parsed_at":"2024-07-29T20:45:11.265Z","dependency_job_id":"743adfb3-b857-4cba-b9e9-3d389e79e5fb","html_url":"https://github.com/rafaelstz/deployer-magemojo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magemojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magemojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magemojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelstz%2Fdeployer-magemojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelstz","download_url":"https://codeload.github.com/rafaelstz/deployer-magemojo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244444386,"owners_count":20453716,"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":["cli","deploy","deployer","hosting","magento"],"created_at":"2024-10-10T12:59:54.104Z","updated_at":"2025-03-19T14:30:26.439Z","avatar_url":"https://github.com/rafaelstz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n    \u003cimg src=\"https://magemojo.com/magento/skin/frontend/b-responsive/magemojo/images/mojostratus.png\" alt=\"Magemojo Stratus Deployer Recipe\" width=\"400\" height=\"83\" title=\"MageMojo Deployer Recipe\"/\u003e \n\u003c/h1\u003e\n\u003ch4\u003e\n\u003cp align=\"center\"\u003e\n    Easily run cache clearing in your deployments\n  \u003c/p\u003e\n\u003c/h4\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://app.travis-ci.com/github/rafaelstz/deployer-magemojo\"\u003e\u003cimg src=\"https://app.travis-ci.com/rafaelstz/deployer-magemojo.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/rafaelstz/deployer-magemojo/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/rafaelstz/deployer-magemojo.svg\" alt=\"Tags\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/rafaelstz/deployer-magemojo\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/rafaelstz/deployer-magemojo.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\nUse this tool integrated with the [Deployer](https://deployer.org/) to use the power of [MageMojo Stratus CLI](https://magemojo.com/kb/knowledge-base/stratus-cli/).\n\nIf you are using Magento 2 you can use this [Magento 2 Deployer Recipe](https://github.com/rafaelstz/deployer-magento2) together!\n\nFeatures\n-----\n\nYou can run the command followed by **dep**. Example: `dep mm:cache:clear --stage=production`.\n\n| Command | Description |\n|----------|-------------|\n| mm:cron:stop | Stop Crons from running |\n| mm:cron:start | Start crons |\n| mm:zdd:init | Zero Downtime Deployment Init |\n| mm:zdd:switch | Zero Downtime Deployment Switch with check |\n| mm:autoscaling:reinit | It will issue a redeploy of PHP-FPM services |\n| mm:cache:clear | Clears everything |\n| mm:cloudfront:clear | Clears Cloudfront cache |\n| mm:opcache:clear | Clears OPCache cache |\n| mm:redis:clear | Clears Redis cache |\n| mm:varnish:clear | Clears Varnish cache |\n\nHow to install\n-------\n\nHow to install Deployer:\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 package:\n\n```\ncomposer require rafaelstz/deployer-magemojo --dev\n```\n\nHow to use\n-----\n\nAfter install it, you can add the line below after the **namespace** and run `dep` to check:\n\n```php\n// MageMojo Recipe\nrequire __DIR__ . '/vendor/rafaelstz/deployer-magemojo/MageMojo.php';\n```\n\nThis recipe when installed automatically will clean all caches after the deploy success, but if you want to restart all services, add these into the bottom:\n\n```php\n// MageMojo restart services\nbefore('deploy', 'mm:cron:stop');\nafter('deploy', 'mm:cron:start');\nafter('success', 'mm:autoscaling:reinit');\n\n// MageMojo clean all caches\nafter('success', 'mm:cloudfront:clear');\nafter('success', 'mm:varnish:clear');\nafter('success', 'mm:redis:clear');\n```\n\nFor example:\n-----\n\n```php\n\u003c?php\n\nnamespace Deployer;\n// MageMojo Recipe\nrequire __DIR__ . '/vendor/rafaelstz/deployer-magemojo/MageMojo.php';\n\n// Project\nset('application', 'My Project Name');\nset('repository', 'git@bitbucket.org:mycompany/my-project.git');\nset('default_stage', 'production');\n\n// Project Configurations\nhost('production')\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    -\u003estage('production');\n\n// MageMojo restart services\nafter('success', 'mm:autoscaling:reinit');\n\n// MageMojo clean all caches\nafter('success', 'mm:cloudfront:clear');\nafter('success', 'mm:varnish:clear');\nafter('success', 'mm:redis:clear');\n\n```\n\nLicense\n-----\n\nMIT\n\n[Rafael Correa Gomes](https://www.linkedin.com/in/rafaelcgstz/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelstz%2Fdeployer-magemojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelstz%2Fdeployer-magemojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelstz%2Fdeployer-magemojo/lists"}