If `/app/web` is not being used as Drupal root, for example `/app/docroot`, no-robots.sh:7 fails to write robots.txt in non-production environments. https://github.com/govCMS/govcmslagoon/blob/264a413f840dfd99c5f984117cd64b912c61e4d7/.docker/images/nginx/no-robots.sh#L6-L8 ``` [govcms7-paas]nginx:/app$ sh /lagoon/entrypoints/20-no-robots.sh /lagoon/entrypoints/20-no-robots.sh: line 7: can't create /app/web/robots.txt: nonexistent directory ``` Maybe doing something like this would help PaaS scallywags? ``` if [ ! "${LAGOON_ENVIRONMENT_TYPE}" == "production" ]; then printf "User-agent: *\nDisallow: /\n" > /"${APP_DIR:-app}"/"${WEBROOT:-web}"/robots.txt fi ```
If
/app/webis not being used as Drupal root, for example/app/docroot, no-robots.sh:7 fails to write robots.txt in non-production environments.govcmslagoon/.docker/images/nginx/no-robots.sh
Lines 6 to 8 in 264a413
Maybe doing something like this would help PaaS scallywags?