From d4d2dece7047af3aacd11070488831a061db4a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 31 Mar 2020 18:16:30 +0200 Subject: [PATCH] Use Opcache preloading on heroku server. --- Procfile | 2 +- heroku_php.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 heroku_php.ini diff --git a/Procfile b/Procfile index 2025a85d..5f994721 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: $(composer config bin-dir)/heroku-php-apache2 public/ \ No newline at end of file +web: $(composer config bin-dir)/heroku-php-apache2 -i heroku_php.ini public/ \ No newline at end of file diff --git a/heroku_php.ini b/heroku_php.ini new file mode 100644 index 00000000..9a82170f --- /dev/null +++ b/heroku_php.ini @@ -0,0 +1 @@ +opcache.preload=/app/var/cache/prod/App_KernelProdContainer.preload.php \ No newline at end of file