mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Make all Symfony2 tasks to gues where they should run (local or remote).
This commit is contained in:
		
							parent
							
								
									6f6cf2436a
								
							
						
					
					
						commit
						974304e707
					
				@ -40,7 +40,7 @@ class AsseticDumpTask extends AbstractTask
 | 
			
		||||
    	$env = $this->getParameter('env', 'dev');
 | 
			
		||||
 | 
			
		||||
        $command = 'app/console assetic:dump --env=' . $env;
 | 
			
		||||
        $result = $this->runCommandLocal($command);
 | 
			
		||||
        $result = $this->runCommand($command);
 | 
			
		||||
 | 
			
		||||
        return $result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,7 @@ class AssetsInstallTask extends AbstractTask
 | 
			
		||||
    	}
 | 
			
		||||
 | 
			
		||||
        $command = 'app/console assets:install ' . ($symlink ? '--symlink' : '') .  ' ' . ($relative ? '--relative' : '') .  ' --env=' . $env . ' ' . $target;
 | 
			
		||||
        $result = $this->runCommandLocal($command);
 | 
			
		||||
        $result = $this->runCommand($command);
 | 
			
		||||
 | 
			
		||||
        return $result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -40,7 +40,7 @@ class CacheClearTask extends AbstractTask
 | 
			
		||||
    	$env = $this->getParameter('env', 'dev');
 | 
			
		||||
 | 
			
		||||
        $command = 'app/console cache:clear --env=' . $env;
 | 
			
		||||
        $result = $this->runCommandLocal($command);
 | 
			
		||||
        $result = $this->runCommand($command);
 | 
			
		||||
 | 
			
		||||
        return $result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -40,7 +40,7 @@ class CacheWarmupTask extends AbstractTask
 | 
			
		||||
    	$env = $this->getParameter('env', 'dev');
 | 
			
		||||
 | 
			
		||||
        $command = 'app/console cache:warmup --env=' . $env;
 | 
			
		||||
        $result = $this->runCommandLocal($command);
 | 
			
		||||
        $result = $this->runCommand($command);
 | 
			
		||||
 | 
			
		||||
        return $result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user