You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a setup where we can quickly check if our plugin is working in \w multiple PHP versions.
NGINX is cycling through the available PHP services, no matter what NGINX service you are visiting. On each visit, the next service will be used.
The cause of this issue is the static network name that is used for the php-fpm service (defined here). All the services will get the same network alias, so NGINX doesn't have a clue which PHP service belongs to him.
/w overrides it would (probably, untested) look like this:
php56:
type: php:5.6via: nginxconfig:
vhosts: .lando/56-default.conf.tpl #we need to change file so we can change the upsteam phpoverrides:
networks:
default:
aliases:
- fpm3
Ideally, we would be able to attach multiple PHP services to one NGINX service. I've tried setting the via to cli and image to fpm so no additional NGINX service will be created and used the overrides mentioned above. This seems to work, however, I haven't figured out the correct NGINX config yet.
Any other suggestions for quickly switching between PHP versions are also welcome. NGINX is required.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.
@Xilonz i moved this over to the right issue queue. @labboy0276 this might be an easy one to take care of. I think all we have to do is make the alias a bit more dynamic.
I'm trying to create a setup where we can quickly check if our plugin is working in \w multiple PHP versions.
NGINX is cycling through the available PHP services, no matter what NGINX service you are visiting. On each visit, the next service will be used.
The cause of this issue is the static network name that is used for the php-fpm service (defined here). All the services will get the same network alias, so NGINX doesn't have a clue which PHP service belongs to him.
/w overrides it would (probably, untested) look like this:
Ideally, we would be able to attach multiple PHP services to one NGINX service. I've tried setting the
via
tocli
andimage
tofpm
so no additional NGINX service will be created and used the overrides mentioned above. This seems to work, however, I haven't figured out the correct NGINX config yet.Any other suggestions for quickly switching between PHP versions are also welcome. NGINX is required.
The text was updated successfully, but these errors were encountered: