-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow Symfony app #53
Comments
Lowered application loading time by half when added services:
php:
volumes:
- /var/www/symfony/vendor |
Hello, Unfortunately, there is no magic solutions for now
"config": {
"bin-dir": "bin",
"vendor-dir": "../vendor"
}, <?php
// previous
$loader = require __DIR__.'/../vendor/autoload.php';
// now
$loader = require __DIR__.'/../../vendor/autoload.php';
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/application-name/cache/' . $this->environment;
}
return parent::getCacheDir();
}
public function getLogDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/application-name/logs';
}
return parent::getLogDir();
} See more about overriding dir structure (Symfony official documentation) BTW, MacOS got the same problem: Docker for Mac #77. Cheers |
@maxpou your new log path is on the host machine or on docker? |
Hi,
I've god Symfony 3 application in Docker CE on my Windows 10 machine. Loading time of this app is about 4-5 seconds. Symfony initialization is about 600ms. I've got even opcache installed and that time is, still, HUGE!
What could be wrong? :(
The text was updated successfully, but these errors were encountered: