Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could the composer.json be updated to not require the --ignore-platform-reqs? #4174

Closed
Mythique opened this issue Aug 9, 2024 · 2 comments
Closed

Comments

@Mythique
Copy link

Mythique commented Aug 9, 2024

Could the composer.json be updated to not require the --ignore-platform-reqs?

It's a bit too error prone, and messes up some workflow (for example the git deployment in plesk, it automatically try to run composer install, but fail and break the website until the proper commands are run manually).

Originally posted by @Mythique in #4033 (comment)

@freescout-help
Copy link
Collaborator

Unfortunately not.

@Mythique
Copy link
Author

Mythique commented Nov 6, 2024

For anyone finding this issue because they use plesk, I ended up fixing the git deployment process.

  • Access the laravel module associated to your website
  • In the deployment section make sure to uncheck 4. Install composer.json dependencies
  • Click the "edit script" button and write something like this (change the php version to the one that is available):
/opt/plesk/php/8.3/bin/php /usr/lib/plesk-9.0/composer.phar install --ignore-platform-reqs
/opt/plesk/php/8.3/bin/php artisan freescout:after-app-update

Automatic deployment should now work without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants