Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaelstz/deployer-magento2
⚙️ Deploy your Magento 2 faster and easier with this Deployer Recipe.
https://github.com/rafaelstz/deployer-magento2
automation continuous-deployment deploy deployer hacktoberfest magento magento2 pipelines
Last synced: 5 days ago
JSON representation
⚙️ Deploy your Magento 2 faster and easier with this Deployer Recipe.
- Host: GitHub
- URL: https://github.com/rafaelstz/deployer-magento2
- Owner: rafaelstz
- License: mit
- Created: 2018-07-18T18:42:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T15:08:16.000Z (over 1 year ago)
- Last Synced: 2024-12-27T11:11:56.483Z (12 days ago)
- Topics: automation, continuous-deployment, deploy, deployer, hacktoberfest, magento, magento2, pipelines
- Language: PHP
- Homepage: https://packagist.org/packages/rafaelstz/deployer-magento2
- Size: 229 KB
- Stars: 50
- Watchers: 7
- Forks: 28
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Deployer Magento 2 recipe
[![Build Status](https://app.travis-ci.com/rafaelstz/deployer.svg?branch=master)](https://app.travis-ci.com/rafaelstz/deployer)
[![Tags](https://img.shields.io/github/tag/rafaelstz/deployer-magento2.svg)](https://github.com/rafaelstz/deployer-magento2/releases)Easy tool to deploy and run automated commands in your Magento 2 servers.
How to install
-------How to install [Deployer](https://deployer.org/):
```
curl -LO https://deployer.org/deployer.phar && sudo mv deployer.phar /usr/local/bin/dep && sudo chmod +x /usr/local/bin/dep
```How to install this **Magento 2 recipe**:
```
composer require rafaelstz/deployer-magento2 --dev
```How to use
-----First 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.
```php
hostname('iuse.magemojo.com')
->user('my-user')
->port(22)
->set('deploy_path', '/home/my-project-folder')
->set('branch', 'master')
->set('is_production', 1)
->stage('staging')
->roles('master')
// ->configFile('~/.ssh/config')
->identityFile('~/.ssh/id_rsa')
->addSshOption('UserKnownHostsFile', '/dev/null')
->addSshOption('StrictHostKeyChecking', 'no');
```**Just add this code below too if you don't want to use releases and symlinks**
```php
set('release_path', "{{deploy_path}}");
desc('Deploying...');
task('deploy', [
'deploy:info',
'deploy:lock',
'magento:maintenance:enable',
'git:update_code',
'composer:install',
'deploy:magento',
'magento:maintenance:disable',
'deploy:unlock',
'success'
]);
```