rafaelstz / deployer-magento2

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

Home Page:https://packagist.org/packages/rafaelstz/deployer-magento2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normal pull and bin/magento

ciancastillo opened this issue · comments

Hi, saw your gist for Magento 2 + Bitbucket + Deployer. I just want to ask you a small favor to create a gist for just the normal git pull and the usual bin/magento setup:upgrade.....

Thanks!

Hi @ciancastillo,
I intend to create a variable which you might be able to define if you want to use this tool in the simplest way as you mentioned.
Thank you for your suggestion, if you have more please let me know!

Hi @ciancastillo,

All set, now if you want to use it without symlinks you can add these lines in the last lines of your deploy.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'
]);

I added it into the home README of this project too.