lando / wordpress

The Official WordPress Lando Plugin
https://docs.lando.dev/wordpress/
GNU General Public License v3.0
14 stars 7 forks source link

Multiple appservers #25

Closed danharper83 closed 1 year ago

danharper83 commented 1 year ago

I created a new project using lando init and selecting the Wordpress recipe. By default it uses NGINX and the yml file is as follows.

name: test-wp
recipe: wordpress
config:
  webroot: .
  via: nginx

When loaded these are the services SERVICES appserver_nginx, appserver, database

It loads two appservers which makes the rest of the lando documentation difficult to use like the xdedug documentation. It always referes to appserver and it's not clear if I should be setting up xdebug on appserver or appserver_nginx.

Does this recipe need both appservers?

sinnbeck commented 1 year ago

appserver refers to the service of language you are working with, in this case php. The appserver_nginx refers to the webserver for the app. So xdebug needs to be set up for appserver

danharper83 commented 1 year ago

Thanks @sinnbeck, so if I use apache then the php server and webserver are both on appserver?

sinnbeck commented 1 year ago

Exactly. But nginx runs in its own container

danharper83 commented 1 year ago

Thanks 👍