From 41862278f9613824d143e0ef8c32d6a9960598db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Kukli=C5=84ski?= Date: Tue, 2 Jul 2024 10:43:21 +0200 Subject: [PATCH 1/3] Add symfony-build command to platform.app.yaml file --- .platform.app.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.platform.app.yaml b/.platform.app.yaml index 7f3c158332..38dbbfa1b7 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -100,6 +100,7 @@ hooks: hash -r yarn install --frozen-lockfile yarn build:prod + symfony-build deploy: | set -e From b437e5c7ea2c1850832f5b9c0adb7822f55292b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Kukli=C5=84ski?= Date: Thu, 4 Jul 2024 12:46:22 +0200 Subject: [PATCH 2/3] Replace Symfony integration with standard Symfony installer --- .platform.app.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.platform.app.yaml b/.platform.app.yaml index 38dbbfa1b7..b03b5b5069 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -94,19 +94,23 @@ crons: hooks: build: | - set -e - curl -fs https://get.symfony.com/cloud/configurator | bash + set -e n auto hash -r + curl -sS https://get.symfony.com/cli/installer | bash + mv "$PLATFORM_APP_DIR/.symfony5/bin/symfony" "$PLATFORM_APP_DIR/.global/bin/symfony" + cat >> "$PLATFORM_APP_DIR/.global/environment" < Date: Fri, 5 Jul 2024 14:15:29 +0200 Subject: [PATCH 3/3] Update .platform.app.yaml Change schema:update with migrations:migrate Co-authored-by: Kamil Grygierzec <53942444+TheMilek@users.noreply.github.com> --- .platform.app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.platform.app.yaml b/.platform.app.yaml index b03b5b5069..9dcadb0c66 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -110,7 +110,7 @@ hooks: rm -rf var/cache/* mkdir -p public/media/image bin/console doctrine:database:create --if-not-exists - bin/console doctrine:schema:update --force + bin/console doctrine:migrations:migrate -n bin/console sylius:fixtures:load -n bin/console lexik:jwt:generate-keypair --skip-if-exists bin/console assets:install --symlink --relative public