Skip to content

Commit

Permalink
Merge branch '1.12' into 1.13
Browse files Browse the repository at this point in the history
* 1.12:
  Update .platform.app.yaml
  Replace Symfony integration with standard Symfony installer
  Add symfony-build command to platform.app.yaml file
  • Loading branch information
GSadee committed Jul 8, 2024
2 parents aa77509 + af56f17 commit 0b76a82
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +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" <<EOS
export \$(symfony var:export)
EOS
yarn install --frozen-lockfile
yarn build:prod
deploy: |
set -e
symfony-deploy
rm -rf var/cache/*
mkdir -p public/media/image
bin/console doctrine:database:create --if-not-exists
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
Expand Down

0 comments on commit 0b76a82

Please sign in to comment.