From 9c4648eb947f95f0f96f4f9faf0dcb80864577aa Mon Sep 17 00:00:00 2001 From: lubiana Date: Sun, 27 Apr 2025 11:44:23 +0200 Subject: [PATCH] fix routing.php --- config/packages/routing.php | 15 +++++++++------ deploy/prepare-deploy.sh | 4 +++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/config/packages/routing.php b/config/packages/routing.php index 7f7158e..a072a28 100644 --- a/config/packages/routing.php +++ b/config/packages/routing.php @@ -1,13 +1,16 @@ extension('framework', [ + 'router' => null, + ]); if ($containerConfigurator->env() === 'prod') { - $routerConfig->strictRequirements(false); + $containerConfigurator->extension('framework', [ + 'router' => [ + 'strict_requirements' => null, + ], + ]); } }; diff --git a/deploy/prepare-deploy.sh b/deploy/prepare-deploy.sh index 40af730..a7589b2 100755 --- a/deploy/prepare-deploy.sh +++ b/deploy/prepare-deploy.sh @@ -8,13 +8,15 @@ fi mkdir $TARGETDIR cd $TARGETDIR || return -pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env" +pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env assets package.json package.lock webpack.config.js" for path in $pathsToCopy do cp -r ../../"$path" ./ done +npm install +npm run build APP_ENV=prod composer install --no-dev -a rm -rf ./var/cache