dennis.koch
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
Is this still something people like to see? Let me know! 🙌
Ivo Pereira
Yes, looking forward to it!
Anthony Morales
Would be nice.
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?
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.
Dennis
Ah, yes, I understand!
bkeeper
Would be great! +1
PHP alias per domain
-
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