mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	[Nostromo] Tweak on deployment
This commit is contained in:
		
							parent
							
								
									30ff342ec1
								
							
						
					
					
						commit
						16c02a5b74
					
				@ -137,9 +137,6 @@ class DeployCommand extends AbstractCommand
 | 
			
		||||
            $this->runtime->setStage(Runtime::ON_DEPLOY);
 | 
			
		||||
            $onDeployTasks = $this->runtime->getTasks();
 | 
			
		||||
 | 
			
		||||
            if (!$this->runtime->inRollback()) {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->runtime->getEnvironmentConfig('releases', false)) {
 | 
			
		||||
                if (!in_array('deploy/targz/copy', $onDeployTasks) && !$this->runtime->inRollback()) {
 | 
			
		||||
                    array_unshift($onDeployTasks, 'deploy/targz/copy');
 | 
			
		||||
@ -149,7 +146,7 @@ class DeployCommand extends AbstractCommand
 | 
			
		||||
                    array_unshift($onDeployTasks, 'deploy/release/prepare');
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                if (!in_array('deploy/rsync', $onDeployTasks)) {
 | 
			
		||||
                if (!in_array('deploy/rsync', $onDeployTasks) && !$this->runtime->inRollback()) {
 | 
			
		||||
                    array_unshift($onDeployTasks, 'deploy/rsync');
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user