environment fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
ARG API_URL
|
ARG API_URL
|
||||||
|
|
||||||
ARG MYSQL_DATABASE
|
ARG MYSQL_DATABASE
|
||||||
@@ -45,6 +46,17 @@ RUN chmod +x /usr/local/bin/wp
|
|||||||
|
|
||||||
COPY docker/php/setup.sh /init-scripts/
|
COPY docker/php/setup.sh /init-scripts/
|
||||||
RUN chmod +x /init-scripts/setup.sh
|
RUN chmod +x /init-scripts/setup.sh
|
||||||
|
=======
|
||||||
|
ARG WP_DB_NAME
|
||||||
|
ARG WP_DB_USER
|
||||||
|
ARG WP_DB_PASSWORD
|
||||||
|
ARG WP_DB_HOST
|
||||||
|
|
||||||
|
ENV WP_DB_NAME=${WP_DB_NAME} \
|
||||||
|
WP_DB_USER=${WP_DB_USER} \
|
||||||
|
WP_DB_PASSWORD=${WP_DB_PASSWORD} \
|
||||||
|
WP_DB_HOST=${WP_DB_HOST}
|
||||||
|
>>>>>>> environment fix
|
||||||
|
|
||||||
RUN docker-php-ext-install pdo pdo_mysql mysqli
|
RUN docker-php-ext-install pdo pdo_mysql mysqli
|
||||||
RUN a2enmod rewrite ssl
|
RUN a2enmod rewrite ssl
|
||||||
@@ -65,4 +77,4 @@ COPY docker/php/.htaccess /var/www/html/
|
|||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
CMD /init-scripts/setup.sh
|
CMD /init-scripts/setup.sh
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Do not edit this file. Edit the config files found in the config/ dir instead.
|
* Do not edit this file. Edit the config files found in the config/ dir instead.
|
||||||
* This file is required in the root directory so WordPress can find it.
|
* This file is required in the root directory so WordPress can find it.
|
||||||
* WP is hardcoded to look in its own directory or one directory up for wp-config.php.
|
* WP is hardcoded to look in its own directory or one directory up for wp-config.php.
|
||||||
*/
|
*/
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
require_once(__DIR__ . '/vendor/autoload.php');
|
||||||
require_once(__DIR__ . '/config/application.php');
|
require_once(__DIR__ . '/config/application.php');
|
||||||
require_once(ABSPATH . 'wp-settings.php');
|
require_once(ABSPATH . 'wp-settings.php');
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
|
|
||||||
ARG API_URL
|
ARG API_URL
|
||||||
ENV REACT_APP_API_URL ${API_URL}
|
ENV REACT_APP_API_URL ${API_URL}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user