GetDKAN / dkan2

Deprecated: please use the 2.x branch of the dkan repo
https://github.com/GetDKAN/dkan
GNU General Public License v2.0
18 stars 16 forks source link

dkan_frontend fails scandir on fresh builds #244

Closed janette closed 4 years ago

janette commented 5 years ago

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.