composer-warmup's People
Forkers
romainneutron theofidry chesscom sergiusd glensc rexfordkelly-on-php holtkamp staabm majkl578 janlanger prazvancomposer-warmup's Issues
Issue with composer v2.3
Hello,
I'm trying to use this package in combination with composer v2.3 and I get the following error when launching the warmup-opcode command.
In PhpServerCompiler.php line 33:
[Error]
Class "Symfony\Component\Process\ProcessBuilder" not found
Exception trace:
at /home/docker/composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php:33
Jderusse\Warmup\Compiler\PhpServerCompiler->startServer() at /home/docker/composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php:23
Jderusse\Warmup\Compiler\PhpServerCompiler->__construct() at /home/docker/composer/vendor/jderusse/composer-warmup/src/Console/WarmupCommand.php:67
Jderusse\Warmup\Console\WarmupCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1015
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:299
Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:334
Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:130
Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:83
require() at /usr/bin/composer:29
warmup-opcode [<extra>...]
It seems to be related to the fact that composer v2.3 requires symfony/process
version of at least v5.4.0 which does not include anymore the Symfony\Component\Process\ProcessBuilder
class.
If it's fine with you I can create a PR to refactor the pieces of code that are using the process builder and try to support both symfony/process
<4.0 and >=4.0.
blackfire comparison link returns a 404
Hello Jeremy,
Hope you're fine & thank you for this tool that seems really interesting.
I found the link on your Readme.md returning a 404
=> https://blackfire.io/profiles/compare/a5e55813-de07-437c-9ddf-e8aefc6a8a81/graph
Any benchmarks?
Any benchmarks or an article about this? Would be nice to hear if it's a good idea of precompiling opcache into the docker container
Error when php-fpm is running on other instance
on running command
composer warmup-opcode
i am getting following error
Fatal error: Uncaught Error: Call to undefined function Jderusse\Warmup\Compiler\socket_create_listen() in /srv/.composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php:95 Stack trace: #0 /srv/.composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php(83): Jderusse\Warmup\Compiler\PhpServerCompiler->isPortAvailable(8000) #1 /srv/.composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php(20): Jderusse\Warmup\Compiler\PhpServerCompiler->findPort(Array) #2 /srv/.composer/vendor/jderusse/composer-warmup/src/Console/WarmupCommand.php(62): Jderusse\Warmup\Compiler\PhpServerCompiler->__construct() #3 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(242): Jderusse\Warmup\Console\WarmupCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(843): Symfony\Component\Console\Command\Command->run(Object(Symfony\Compo in /srv/.composer/vendor/jderusse/composer-warmup/src/Compiler/PhpServerCompiler.php on line 95
The PhpServerCompiler.php file has following configured:
public function __construct(array $portRange = [8000, 8999])
{
$port = $this->findPort($portRange);
$this->address = sprintf('127.0.0.1:%d', $port);
$this->startServer();
}
Now, since php-fpm is not hosted on the same server, I am not sure how we can override that with real options. I've tried adding as "php-fpm" but it does not work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.