fixed pbm var env name in env docker
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/home/www-data//google_map
|
||||
@@ -1 +0,0 @@
|
||||
/home/www-data//map_prof
|
||||
@@ -14,7 +14,7 @@ function my_init_script() {
|
||||
wp_enqueue_style('my_style', $style_path);
|
||||
}
|
||||
|
||||
// if bock theme : https://wordpress.org/support/topic/twenty-twenty-two-cpt-template-error-theme-without-header-is-deprecated/
|
||||
// if block theme : https://wordpress.org/support/topic/twenty-twenty-two-cpt-template-error-theme-without-header-is-deprecated/
|
||||
function add_map_api(){
|
||||
?>
|
||||
<script type="text/javascript" src="https://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
|
||||
@@ -106,7 +106,7 @@ function print_content($content){
|
||||
});
|
||||
}
|
||||
</script>';
|
||||
$content .= '<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCvdGV2ssD4ov4a9CuIlQhoJyz5gWWiSvE&callback=initMap"></script>';
|
||||
$content .= '<script async defer src="https://maps.googleapis.com/maps/api/js?sensor=false&key=AIzaSyCvdGV2ssD4ov4a9CuIlQhoJyz5gWWiSvE&callback=initMap"></script>';
|
||||
|
||||
return $content;
|
||||
};
|
||||
|
||||
@@ -19,12 +19,13 @@ COPY ./conf/www.conf /etc/php7/php-fpm.d/
|
||||
RUN mkdir /run/php/
|
||||
|
||||
ARG WP_VOLUME_DIR
|
||||
ARG WP_VOLUME_PLUGINS
|
||||
ARG MAX_UPLOAD_SIZE
|
||||
ARG EXECUTION_TIME
|
||||
|
||||
# create and empty volume dir
|
||||
RUN mkdir -p ${WP_VOLUME_DIR} && \
|
||||
rm -rf ${WP_VOLUME_DIR}/*
|
||||
# create and empty volumes dir
|
||||
RUN mkdir -p ${WP_VOLUME_DIR} ${WP_VOLUME_PLUGINS} && \
|
||||
rm -rf ${WP_VOLUME_DIR}/* ${WP_VOLUME_PLUGINS}/*
|
||||
|
||||
# replace max file size upload and execution time
|
||||
RUN sed -i "s/\(upload_max_filesize = \).*\(M\)/\1${MAX_UPLOAD_SIZE}\2/g" /etc/php7/php.ini && \
|
||||
|
||||
@@ -68,11 +68,10 @@ chown -R www-data:www-data /var/www/*
|
||||
chmod 755 -R /var/www/*
|
||||
|
||||
# symlinks for folders found in host plugins/
|
||||
plugins=$(ls ${WP_VOLUME_PLUGIN})
|
||||
plugins=$(ls ${WP_VOLUME_PLUGINS})
|
||||
for dir in $plugins; do
|
||||
ln -s ${WP_VOLUME_PLUGIN}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/$dir
|
||||
ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/$dir
|
||||
done
|
||||
|
||||
|
||||
exec "${PHP_VERSION}" -FR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user