{"id":36372650,"url":"https://github.com/magemojo/deployer-example","last_synced_at":"2026-01-11T14:02:18.876Z","repository":{"id":62549396,"uuid":"458585619","full_name":"magemojo/deployer-example","owner":"magemojo","description":"MageMojo Stratus Deployment example repo using Deployer.org application","archived":false,"fork":false,"pushed_at":"2022-03-20T09:34:22.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-14T21:42:36.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magemojo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-12T17:03:25.000Z","updated_at":"2022-03-20T09:36:27.000Z","dependencies_parsed_at":"2022-11-03T01:30:35.641Z","dependency_job_id":null,"html_url":"https://github.com/magemojo/deployer-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magemojo/deployer-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magemojo%2Fdeployer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magemojo%2Fdeployer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magemojo%2Fdeployer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magemojo%2Fdeployer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magemojo","download_url":"https://codeload.github.com/magemojo/deployer-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magemojo%2Fdeployer-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: 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":[],"created_at":"2026-01-11T14:02:18.701Z","updated_at":"2026-01-11T14:02:18.794Z","avatar_url":"https://github.com/magemojo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webscale Stratus deployer-example\nWebscale Stratus Deployment example repo using Deployer.org application\n\nWhat is Deployer? \u003cBR\u003e\nA deployment tool written in PHP with support for popular frameworks out of the box. Deployer used by hundreds thousands of projects around the world, performing more than a million of deploys each month. Deployer comes with more than 50 ready to use recipes for frameworks and third-party services.\n  \nThis repository is created to help you to adjust your Deployer.org deployment processes and use it to deploy application on Webscale Stratus platform.\n  \nBasically to get started first we need to install Deployer application as per https://deployer.org/docs/7.x/installation guidelines.\n```\ncurl -LO https://deployer.org/deployer.phar\nmv deployer.phar /usr/local/bin/dep\nchmod +x /usr/local/bin/dep\n```\n\nNow, we can cd into the project and run following command:\n```\ndep init\n```\n\nDeployer will ask you a few question and after finishing you will have a deploy.php or deploy.yaml file. This is our deployment recipe. It contains hosts, tasks and requires other recipes. All framework recipes that come with Deployer are based on the common recipe.\nhttps://deployer.org/docs/7.x/recipe/common\n\nDeployer.org already covered Magento 2 recpie and it can be downloaded/reviewed here:\nhttps://github.com/deployphp/deployer/blob/master/recipe/magento2.php\n  \nHow to install this package:\n```\ncomposer require magemojo/deployer-example --dev\n```\n\nHow to use\nAfter install it, you can add the line below after the namespace and run dep to check:\n\n```\n// Webscale Stratus Recipe\nrequire __DIR__ . '/vendor/magemojo/deployer-example/stratus.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```\n// Webscale Stratus start/stop/restart services\nbefore('deploy', 'stratus:cron:stop');\nafter('deploy', 'stratus:cron:start');\nafter('success', 'stratus:zdd:init');\nafter('success', 'stratus:zdd:switch');\n\n// Webscale Stratus clean all caches\nafter('success', 'stratus:cloudfront:clear');\nafter('success', 'stratus:varnish:clear');\nafter('success', 'stratus:redis:clear');\nafter('success', 'stratus:cache:clear');\n```\n\nFor example:\n```\n\u003c?php\n\nnamespace Deployer;\n// Webscale Stratus Recipe\nrequire __DIR__ . '/vendor/magemojo/deployer-example/stratus.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// Webscale Stratus restart services\nafter('success', 'stratus:zdd:init');\nafter('success', 'stratus:zdd:switch');\n\n// Webscale Stratus clean all caches\nafter('success', 'stratus:cloudfront:clear');\nafter('success', 'stratus:varnish:clear');\nafter('success', 'stratus:redis:clear');\nafter('success', 'stratus:cache:clear');\n```\n\nSummary of all available commands:\n\n| Command | Description |\n|----------|-------------|\n| stratus:cron:stop | Stop Crons from running |\n| stratus:cron:start | Start crons |\n| stratus:zdd:init | Zero Downtime Deployment Init |\n| stratus:zdd:switch | Zero Downtime Deployment Switch with check |\n| stratus:autoscaling:reinit | It will issue a redeploy of PHP-FPM services |\n| stratus:cc | Clears everything |\n| stratus:cloudfront:clear | Clears Cloudfront cache |\n| stratus:opcache:clear | Clears OPCache cache |\n| stratus:redis:clear | Clears Redis cache |\n| stratus:varnish:clear | Clears Varnish cache |\n| stratus:nginx:update | Reload Nginx |\n\nUseful commands for deploy.php file:\n```\n// Webscale Stratus autoscaling requires absolute symlinks\nset('use_relative_symlink', false);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagemojo%2Fdeployer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagemojo%2Fdeployer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagemojo%2Fdeployer-example/lists"}