hpatoio / deploybundle Goto Github PK
View Code? Open in Web Editor NEWPorting of Symfony 1.4 project:deploy command to Symfony 2
Porting of Symfony 1.4 project:deploy command to Symfony 2
When deploying, I often get timeouts (Symfony\Component\Process\Exception\RuntimeException)
So it would be nice to be able to set a timeout for the process
Possible patch:
--------------------------------8<-----------------------------
--- DeployCommand.php 2013-12-10 14:01:57.385970911 +0100 +++ DeployCommand.php.new 2013-12-10 14:03:51.477975039 +0100 @@ -31,6 +31,7 @@ ->addOption('go', null, InputOption::VALUE_NONE, 'Do the deployment') ->addOption('rsync-options', null, InputOption::VALUE_NONE, 'Options to pass to the rsync executable') ->addOption('force-vendor', null, InputOption::VALUE_NONE, 'Force sync of vendor dir.') + ->addArgument('timeout', InputArgument::OPTIONAL, 'Process timeout') ; } @@ -45,7 +46,10 @@ $available_env = $this->getContainer()->getParameter('deploy.config'); $env = $input->getArgument('env'); - + $timeout = $input->getArgument('timeout'); + if(!$timeout) { + $timeout = 60; + } if (!in_array($env, array_keys($available_env))) { $output->writeln('Env value not valid.'); exit(); @@ -82,7 +86,7 @@ $command)); $process = new Process($command); - + $process->setTimeout($timeout); $output->writeln("\nSTART deploy\n--------------------------------------------"); $process->run(function ($type, $buffer) use ($output) {
------------------------------------>8------------------------------------------------
Hi @hpatoio
I could not open an issue on your bitly github. Wanted to say as you abandoned your bitly repo. We are grateful if you add a link to our bitly repo as replacement suggestion.
Thanks,
in DependencyInjection/DeployExtension.php, line 30
This file ends with no newline character. It won't render properly on a terminal, and it's considered a bad practice. Add a simple line feed as the last character to fix it.
$container->setParameter('deploy.config', $config);
}
}
Posted from SensioLabsInsight
Improve doc.
README.md
After installing the DeployBundle with composer I can't execute no command with the symfony console. Regardless of which command I try, following exception is thrown:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The path "deploy" should have at least 1 element(s) defined.
This exception is also thrown in the development-env (app_dev.php)
Environment: Symfony v2.1.7 Standard Distribution plus FOSUserBundle v1.3.1
Hi, how can I ignore the cache folder?
Thanks
The checker detected 1 security issues in package symfony/framework-bundle installed in version 2.5.0.0 1) Code injection in the way Symfony implements translation caching in FrameworkBundle.
Posted from SensioLabsInsight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.