pantheon-systems / localdev-issues

Issue tracking for Pantheon localdev
6 stars 2 forks source link

How to specify nested docroot for local development? (Drupal, composer) #115

Open axoplasm opened 2 years ago

axoplasm commented 2 years ago

I’m upgrading Drupal 8 site to Drupal 9, following this helpful guide. Mostly successful but unclear how to specify the /web/ docroot for local development. My steps:

  1. Followed the guide above
  2. Pulled the composerify environment onto my local machine using LocalDev
  3. (opened an SSH terminal via LocalDev)
  4. ran $ composer install in the above term; installed everything
  5. added web_docroot: true to my pantheon.yml
  6. (at this point I had to step away & shut down the local environment)
  7. Restarted my Docker containers (note: had to do this manually, LocalDev failed to start them)
  8. nginx is dutifully serving my local site from /app not /app/web. So for example I can (kind of) see my site if I browse to <project-environent>.pantheonlocal.com/web/, and not <project-environent>.pantheonlocal.com/

Any help is appreciated, thanks, and apologies in advance for asking a HOWTO question in an issue