dennis.koch

dennis.koch

Planned

Usually you want to switch PHP version for FPM/Cronjobs/Queue workers at the same time, since the app would break otherwise. Currently you need to manually update the Cronjob and edit the Supervisor config for that.

Since we already have aliases for PHP versions, I think it would be great to have aliases for each Domain (e.g. php-example-domain-com), which will be used for everything configured on Website level. You can than easily swap the version everywhere with one click.

Dennis

Dennis

· · Edited
·

Is this still something people like to see? Let me know! 🙌

1 total vote
Anthony Morales
Ivo Pereira

Ivo Pereira

· · Edited
·

Yes, looking forward to it!

1 total vote
Anthony Morales
Anthony Morales

Anthony Morales

·
·

Would be nice.

no votes yet
Dennis

Dennis

·
·

Reason I'm asking is because there's already the {SITE_PHP} variable available that always returns php8.1 for example, which basically solves this?

no votes yet
Julius Kiekbusch

Julius Kiekbusch

·
·

But {SITE_PHP} is only available in the Deployment Script and not while setting up a cronjob or Queue for example. Or am I mistaken about that?

It would be great if you could do for example

php-my-site artisan queue:work

which will use the correct PHP version after changing the PHP version of the site.

no votes yet
Dennis

Dennis

·
·

Ah, yes, I understand!

no votes yet
bkeeper

bkeeper

·
·

Would be great! +1

no votes yet

PHP alias per domain

26 total votes
  • Dennis moved item to board Planned

    2 years ago
  • Dennis moved item to project Server Level Requests

    2 years ago
  • dennis.koch opened

    2 years ago