wearejh / m2-deploy-recipe
Deployer Recipe for Magento 2
Installs: 179
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 12
Forks: 2
Open Issues: 2
pkg:composer/wearejh/m2-deploy-recipe
Requires
- deployer/deployer: dev-master
- dev-main
- 2.2.1
- 2.2
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0
- 1.0
- dev-task-removal-error-handling
- dev-update-composer-lock
- dev-update-typo-in-branch-name
- dev-pin-m2-deployer-to-specific-commit
- dev-chore/additional-check-to-prevent-not-found-error
- dev-dump-autoload-with-apcu-after-di-compile
- dev-dependabot/composer/react/http-1.9.0
- dev-master
- dev-akoova-configurable-timeout
This package is auto-updated.
Last update: 2026-01-06 19:33:43 UTC
README
Setup
Deployer Configuration
Create a new file deploy.php in the project root (if it does not already exist)
In this file add the contents below and edit/add the host/s as required
<?php namespace Deployer; require 'recipe/mage.php'; host('server.hostname') ->port(22) ->stage('dev') ->user('www-data') ->set('branch', 'develop') ->set('keep_releases', 1) ->set('deploy_path', '/some/deploy/path')
Lighthouse configuration
There is a task that allows you to generate desktop and mobile Google Lighthouse results after running your
tasks. The results are sent to a Slack channel. You need to set up a Slack bot integration that is allowed
to file:write
Requirements:
lighthouseCLI tool (npm install -g lighthouse)chromium
Setup:
Add this snippet to your deploy.php
set('lighthouse', ( (new LighthouseConfig())->setTargetUrl('https://test-url.com') ->setBasicAuthToken('amg6Y3IfsasagsaagsaDEwbjUtdzByazgwNHQ=') // optional, if your site is protected ->setSlackAuthToken('xoxb-XXXXXXX-XXXXXXXXX-XXXXXXXXXXXXXX') // Slack bot token ->setSlackChannels('XXXXXXX') //Slack channels you want the message sent to, comma-separated ->setProjectSlug('project-name')
and trigger it after your deployment with
dep lighthouse:generate