bezumkin / orbita

Self-hosted blog with subscriptions
https://orbitacms.ru
MIT License
167 stars 20 forks source link

Error docker-compose: orbita-php-fpm: composer db:migrate #2

Closed achterbahn closed 7 months ago

achterbahn commented 7 months ago

Installation almost working. On my Mac when running docker-compose up

migrate [-c|--configuration CONFIGURATION] [-p|--parser PARSER] [--no-info] [-e|--environment ENVIRONMENT] [-t|--target TARGET] [-d|--date DATE] [-x|--dry-run] [--fake]
Script phinx migrate handling the db:migrate event returned with error code 1
Composer could not detect the root package (bezumkin/orbita) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating autoload files
46 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Composer could not detect the root package (bezumkin/orbita) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
> phinx migrate
Phinx by CakePHP - https://phinx.org.
using config file phinx.php
In ConnectionFactory.php line 274:

  Unsupported driver [].  
bezumkin commented 7 months ago

Unsupported driver [].

Usually this means could not connect to database.

@achterbahn Did you remember to cp .env.dist .env?

achterbahn commented 7 months ago

yes, I created a .env file. Plain copy of the .env.dist file, with only changed

COMPOSE_PROJECT_NAME=hefeorbita
SITE_NAME=hefes Orbita

Docker Desktop shows

image

bezumkin commented 7 months ago

@achterbahn Please try again from the scratch with updated readme.

I just checked, it worked fine for me - https://youtu.be/8mFz5m-oggc

achterbahn commented 7 months ago

We solved this: SITE_NAME=Orbita must not be with a space or in quotes. i.e. "orbita testsite"