Local environment setup database issue

Created on 6 December 2022, almost 2 years ago
Updated 25 January 2023, almost 2 years ago

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

  1. Make sure to have Docker installed.
  2. install ddev if not installed already: curl -L https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh | bash
  3. # 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
  4. ddev composer create opigno/opigno-composer
  5. ddev composer require drush/drush
  6. 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 🐛 PHP 8.0 deprecated syntax warnings for h5p-editor RTBC
    "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"
    }

    }

  7. ddev start
  8. ddev import-db --src=(path to a Opigno database sql file)
  9. To check if your database was correctly added: ddev launch -p
  10. To launch website: ddev launch

Proposed resolution

Provide a way to install an existing database

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I 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.

Production build 0.71.5 2024