crazy-max / docker-flarum

Flarum Docker image
MIT License
197 stars 32 forks source link

can't set empty DB_PREFIX #50

Closed krodelabestiole closed 2 years ago

krodelabestiole commented 2 years ago

to set DB_PREFIX empty i use this in docker-compose.yml

environment:
      - "DB_PREFIX=${DB_PREFIX}"

without defining DB_PREFIX first (not in .env e.g.) - which is kind of a hack to set an empty string.

docker "sucessfully" returns : WARNING: The DB_PREFIX variable is not set. Defaulting to a blank string.

but still : PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'flarum.flarum_settings' doesn't exist in /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:82

I guess if the DBPREFIX var is empty, docker-flarum will replace it by default flarum ?