Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚙️ Deploy your Magento 2 faster and easier with this Deployer Recipe.

License

NotificationsYou must be signed in to change notification settings

rafaelstz/deployer-magento2

Repository files navigation

Build StatusTagsTotal Downloads

Easy tool to deploy and run automated commands in your Magento 2 servers.

How to install

How to installDeployer:

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 thisMagento 2 recipe:

composer require rafaelstz/deployer-magento2 --dev

How to use

First of all, go to your project folder, then create a file calleddeploy.php. Inside of this file you can use this example below, modifying the values according with your project and server configurations.

<?phpnamespaceDeployer;require_once__DIR__ .'/vendor/rafaelstz/deployer-magento2/deploy.php';// Projectset('application','My Project Name');set('repository','git@bitbucket.org:lesite/my-project.git');set('default_stage','staging');//set('languages', 'en_US pt_BR');//set('verbose', '-v');// Env Configurationsset('php','/usr/bin/php70');set('magerun','/usr/bin/n98-magerun2');set('composer','/usr/bin/composer');// Project Configurationshost('my-store.com')    ->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

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']);

About

⚙️ Deploy your Magento 2 faster and easier with this Deployer Recipe.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp