jalogut / magento2-deployer-plus

Tool based on deployer.org to perform zero downtime deployments of Magento 2 projects
GNU General Public License v3.0
200 stars 60 forks source link

Deploy locked. #79

Closed haidertm closed 2 years ago

haidertm commented 2 years ago

I try to execute following command

./vendor/deployer/dist/dep deploy stage_master

I get this following error (screenshot attached)

image

There is nothing much i have changed using same sample file, What am i doing wrong here

<?php

namespace Deployer;

require 'vendor/jalogut/magento2-deployer-plus/recipe/magento_2_2_5.php';

// Use timestamp for release name
set('release_name', function () {
    return date('YmdHis');
});

set('static_content_locales', 'en_US');

desc('Upgrades magento database restore');

// Magento dir into the project root. Set "." if magento is installed on project root
set('magento_dir', '.');
// [Optional] Git repository. Only needed if not using build + artifact strategy
set('repository', '*****************************************');
// Space separated list of languages for static-content:deploy
set('languages', 'en_US');
// Enable all caches after deployment
set('cache_enabled_caches', 'all');

// OPcache configuration
task('cache:clear:opcache', 'sudo systemctl reload php-fpm');
after('cache:clear', 'cache:clear:opcache');

// Build host
localhost('build');

// Remote Servers
host('stage_master')
    ->hostname('157.245.***.***')
    ->user('root')
    ->set('deploy_path', '~/test_m2')
    ->stage('stage')
    ->roles('master');
sprankhub commented 2 years ago

I suggest unlocking as shown in the error message and then deploying again with a -vv flag to see what exactly happens and when it fails.