Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php artisan migrate
- IlluminateDatabaseQueryException : could not find driver
- FROM php:7-fpm
- RUN apt-get update -y && apt-get install -y openssl zip unzip git libpq-dev
- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- RUN docker-php-ext-install pdo mbstring
- RUN apt-get install --no-install-recommends -y libpq-dev
- RUN docker-php-ext-install pdo pgsql pdo_pgsql
- COPY php.ini /usr/local/etc/php
- WORKDIR /var/www
- extension=pdo_pgsql
- extension=pgsql
- Вывод phpinfo()
- 5c37728399864061523546.png
- 'default' => env('DB_CONNECTION', 'pgsql'),
- DB_CONNECTION=pgsql
- DB_HOST=192.168.192.2
- DB_PORT=5432
- DB_DATABASE=dbname
- DB_USERNAME=dbuser
- DB_PASSWORD=dbpassword
Add Comment
Please, Sign In to add comment