Closed moimikey closed 6 years ago
i figured out the problem... so i had to add extra define
's to wp-config.php
with the database info. i was assuming this would have been caught automagically with .env
somehow. meh.
also, i feel like maybe vendor and public shouldn't be separate. it's annoying having to alter the path in wordplate's wp-config to point to the correct vendor path.
Hmm, could you explain why you need to update the vendor path?
@vinkla the public directory that nginx is using is /var/www/html
which is linked to ./public
but ./vendor
is outside of public, aka outside of /var/www/html
which won't work. ./vendor
would have to live inside of ./public
. it would make more sense if the composer.json
lived inside ./public
You can rename public to html and put everything else outside the html directory.
@moimikey Hello, what do you add to wp-config?
@njxqlus
the only adjustment i made to work with my Docker setup was:
-require __DIR__.'/../vendor/autoload.php';
+require __DIR__.'/vendor/autoload.php';
how do you modify the wp-config.php
hi,
is there something extra that needs to happen in order to dockerize wordplate? i can't seem to avoid
Error establishing a database connection
docker-compose.yml: