Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-16phpdoc and scrutinizer warning fixesMatthieu Napoli
2015-01-12Simplified get from container with new shorter methodMatthieu Napoli
2014-12-28#6881 Disable logging in 'climulti:request'Matthieu Napoli
The `climulti:request` commands now run in "quiet" mode so it will not log to the output.
2014-11-27Merge branch 'di-config' into tmp-pathMatthieu Napoli
Conflicts: tests/PHPUnit/Integration/LogTest.php
2014-11-13refs #6617 if process or output size is too large, declare it as finishedThomas Steur
Declares a process as finished as soon as a PID file is > 500bytes (contains only PID) and output file is > 100MB (which should usually not be larger than 100KB or 1MB) to prevent files growing up to many GBs. I added unit and integration tests for the file size detection. It is now possible to mock the methods file_exists and filesize although very simple so far. Later we can allow to define callbacks or to define different return values for different files or we can use something like vfsStream
2014-11-13Moved the `tmp/` path into the config (was hardcoded everywhere)Matthieu Napoli
The `tmp/` path was hardcoded everywhere, which resulted in using `SettingsPiwik::rewriteTmpPathWithInstanceId()` to rewrite it for specific use cases. I've moved that path into the config, and replaced all hardcoded usage (and calls to `rewriteTmpPathWithInstanceId()`) by a `get()` from the container. Getting entries from the container is a bad practice and dependency injection should be preferred, but we do baby steps. When refactoring those classes to DI, we'll replace calls to the container with proper dependency injection. Another thing we'll need to do too is move the hardcoded *sub-path* of `tmp/` (e.g. `tmp/sessions/`) into the config also (but again: baby steps). Another future step would be to remove completely instance ID and let it be handled by a plugin (or by end-user config). Having the `tmp/` path in the config means that plugins or users can override it and know it will be taken into account everywhere in Piwik.
2014-11-04Add note about CliMulti URL encoding to method docs.diosmosis
2014-10-21file_exists check instead of suppressing filemtimemgriego
2014-10-20Suppress errors while performing file cleanup during simultaneous cron runs.mgriego
2014-09-30coding style fixes, some PHPStorm inspection fixes, improved readability of ↵Thomas Steur
code, few refactorings, all as part of our code cleanup strategy
2014-08-18refs #6012 if the current script is run as type CGI, it is most likely that ↵Thomas Steur
we will find a CGI php binary and we should fallback to use curl / web instead of executing a console command which does not support CGI. We would otherwise not detect whether the binary is CGI in case the php binary is named php54 etc. and not php54-cgi
2014-07-23reduced multiple empty lines to exactly oneChristian Raue
2014-07-11Fix HHVM support for CLIDiftraku
HHVM 3.0.1 doesn't like the -q flag used in the PHP command-line. Moving the flag into findPhpBinary() in CliPhp adds compatibility with HHVM. Previously mentioned in piwik/piwik/#5263
2014-07-07Merge pull request #345 from craue/more-useful-error-messageMatthieu Aubry
provide a more useful error message on exception
2014-07-06Add log call to CliMulti class.diosmosis
2014-07-05provide a more useful error message on exceptionChristian Raue
2014-06-13Fixes #5343 Cron core:archive: make sure the PHP cli binary is at least 5.3.2mattab
2014-06-10Piwik is a free/libre analytics platform. Refs #4455 GNU Package requirement ↵mattab
to use free/libre instead of open source
2014-06-03refs #5007 try to find a non cgi and non fpm php binaryThomas Steur
2014-05-21Fixes #5204 Add new system check whether the Piwik server supports managing ↵mattab
processes in CLI
2014-05-19Fixes #5181 Renamed methodmattab
2014-04-23Fixes #5035 CliMulti can now trigger a limited number of concurrent requests.mattab
This is set to three concurrent processes in core:archive command. Refs #4903
2014-04-01next try to fix the web archive test, do not use fpm when called from webThomas Steur
2014-03-08This may fix the bug: PHP Warning: Invalid argument supplied for foreach() ↵mattab
in /[piwikdir]/core/CliMulti.php on line 176 reported on forums
2014-03-07Fixes #4824 Use HTTP API instead of async CLI when shell_exec is disabledmattab
2014-02-18Finishing clearing the console command to allow piwik domainmattab
2014-02-18Add new piwik-domain generic option to the console.mattab
2014-02-17check whether the command ps is executable which is not the case if there is ↵Thomas Steur
no access to proc/version, see http://forum.piwik.org/read.php?2,111608
2014-02-13Fixes #4673 In case the PHP binary used is php-cgi instead of PHP cli, add ↵mattab
-q flag to hide http headers from output.
2014-02-12refs #4610 make sure to rewrite tmp path if neededThomas Steur
2014-02-12refs #4610 fix testsThomas Steur
2014-02-12refs #4610 another way to get the php binaryThomas Steur
2014-02-12refs #4610 some code tweaks and optimizationsThomas Steur
2014-02-12refs #4610 simplified, delete old files that were not cleaned upThomas Steur
2014-02-12refs #4610 simplified some logic, fallback to http on windows, redirect the ↵Thomas Steur
output of php to get output even if piwik exits
2014-02-11refs #4610 if a process does not start after 8 seconds, finish it as the ↵Thomas Steur
process probably will not start anyway
2014-02-11refs #4610 prevent some notices like "failed to read from stream" which ↵Thomas Steur
happens if a subprocess tries to write to a file and the archiver just tries to file_get_content at the same time. So file_exists returned true just a few ms before but while trying to read it fails
2014-02-11refs #4610 store everything in climulti folder for easier cleanup later, ↵Thomas Steur
some other optimizations
2014-02-11refs #4610 make sure the command awk existThomas Steur
2014-02-11refs #4610 use a command to execute a request, this way we do not have to ↵Thomas Steur
bootstrap everything again and we already make sure it is only executed from the command line
2014-02-11refs #4610 make sure the fallback mode works in case async is not supportedThomas Steur
2014-02-11refs #4610 Pid => ProcessThomas Steur
2014-02-11refs #4610 tests for cliMulti and loads of bugfixesThomas Steur
2014-02-11refs #4610 I moved the Lock class to CliMulti as it does not 100% work on ↵Thomas Steur
windows and is only used in CliMulti so far. As the Lock class can be quite useful and maybe needed in other use cases it would be nice to have it somewhere under core or so as it is not directly related to CLI. We might have to move it later again. Need to find a better solution for windows
2014-02-10refs #4610 fix headersThomas Steur
2014-02-10refs #4610 simplified the fallback if async is not supported, tests and ↵Thomas Steur
fixes for output class
2014-02-10refs #4610 worked on executing cli commands in parallel but not tested yetThomas Steur