When building a site from scratch the _dkanfrontend module is already enabled before we have run the build script on the frontend app, as it needs content first. This means the docroot/data-catalog-frontend/public directory is empty, which causes errors:
dktl install
[Exec] Running drush si -y in /var/www/docroot
// You are about to DROP all tables in your 'drupal' database. Do you want to continue?: yes.
[notice] Starting Drupal installation. This takes a while.
[warning] scandir(/var/www/docroot/data-catalog-frontend/public): failed to open dir: No such file or directory RouteProvider.php:53
[warning] scandir(): (errno 2): No such file or directory RouteProvider.php:53
[warning] Invalid argument supplied for foreach() RouteProvider.php:53
[warning] scandir(/var/www/docroot/data-catalog-frontend/public): failed to open dir: No such file or directory RouteProvider.php:53
etc.
When building a site from scratch the _dkanfrontend module is already enabled before we have run the build script on the frontend app, as it needs content first. This means the docroot/data-catalog-frontend/public directory is empty, which causes errors: