Problem/Motivation
It is not currently possible to set up a local dev environment using ddev. After successfully importing a production database *(see belowddev import-db --src=(name of sql file)) it still ends up bringing up the Opigno installation page.
Steps to reproduce
- Make sure to have Docker installed.
- install ddev if not installed already:
curl -L https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash -
# Replace my-site-name! export SITE_NAME=my-site-name mkdir $SITE_NAME cd $SITE_NAME ddev config --docroot web --project-name $SITE_NAME --project-type drupal9 --create-docroot ddev composer create opigno/opigno-composerddev composer require drush/drush- edit composer.json in the "extra" object add the following patch OR add the needed code for "Fix PHP 8 deprecation issue". To add manually go to the following file path: web/modules/contrib/h5p/vendor/h5p/h5p-editor/h5peditor.class.php/line 376, (after $defaultLanguage add
= '')
for reference: https://www.drupal.org/project/h5p/issues/3260094"patches": { "h5p/h5p-editor": { "Fix whitelist check to be case insensitive": "https://github.com/h5p/h5p-editor-php-library/commit/bd871a3181f3e4a343351ae6a22d773a74d928b7.diff", "Fix PHP 8 deprecation issue": "https://github.com/h5p/h5p-editor-php-library/commit/2edfd9b9e72d20e3b61f17a6836da21edb370624.diff" }}
ddev startddev import-db --src=(path to a Opigno database sql file)- To check if your database was correctly added:
ddev launch -p - To launch website:
ddev launch
Proposed resolution
Provide a way to install an existing database
Comments
Comment #2
avpadernoComment #3
mtaggart@s-5.com commentedI may have not understood, but this problem would clearly not be an issue with Opigno, and is likely an issue with the my implementation of ddev. Or just my lack of knowledge on the subject in general.