Skip to content

Commit

Permalink
refactor #1006 Integrate Sylius Cloud by standard Symfony installer (…
Browse files Browse the repository at this point in the history
…senghe)

This PR was merged into the 1.12 branch.

Discussion
----------

The Symfony integration seems not to be a correct way to do the Sylius Cloud integration. I've replaced it with standard Symfony installer.

I've tested this on a new environment and it works correctly.

Commits
-------

4186227 Add symfony-build command to platform.app.yaml file
b437e5c Replace Symfony integration with standard Symfony installer
167d339 Update .platform.app.yaml
  • Loading branch information
GSadee authored Jul 8, 2024
2 parents a109c43 + 167d339 commit af56f17
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 af56f17

Please sign in to comment.