- in notes : added duplicator infos
- in wp dockerfil : added php7-session - in wp entrypoint : mv creation of plugins symlinks outside "if wp is installed" block
This commit is contained in:
4
notes.md
4
notes.md
@@ -4,6 +4,10 @@
|
|||||||
- `docker exec -ti <container-name> bash` to run bash inside a running container
|
- `docker exec -ti <container-name> bash` to run bash inside a running container
|
||||||
- `docker logs <container_name>` to see the logs on standard output of a container
|
- `docker logs <container_name>` to see the logs on standard output of a container
|
||||||
- `docker ps` to list the container, and see their names
|
- `docker ps` to list the container, and see their names
|
||||||
|
- [duplicator](https://duplicator.com/knowledge-base/classic-install/)
|
||||||
|
in installer.php :
|
||||||
|
- delete first blank line
|
||||||
|
- close last line comment
|
||||||
|
|
||||||
#### todo :
|
#### todo :
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ RUN apk update && apk add \
|
|||||||
php7-zip \
|
php7-zip \
|
||||||
php7-dom \
|
php7-dom \
|
||||||
php7-curl \
|
php7-curl \
|
||||||
|
php7-session \
|
||||||
\
|
\
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
curl \
|
curl \
|
||||||
|
|||||||
@@ -58,18 +58,20 @@ then
|
|||||||
chown -R www-data:www-data /var/www/*
|
chown -R www-data:www-data /var/www/*
|
||||||
chmod 755 -R /var/www/*
|
chmod 755 -R /var/www/*
|
||||||
|
|
||||||
echo -e ${YELLOW}plugins...${RESET}
|
|
||||||
plugins=$(ls ${WP_VOLUME_PLUGINS})
|
|
||||||
for dir in $plugins; do
|
|
||||||
ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/$dir
|
|
||||||
done
|
|
||||||
|
|
||||||
echo -e ${GREEN}done !${RESET}
|
echo -e ${GREEN}done !${RESET}
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e ${GREEN}wp is installed${RESET}
|
echo -e ${GREEN}wp is installed${RESET}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# installing plugins :
|
||||||
|
echo -e ${YELLOW}plugins...${RESET}
|
||||||
|
plugins=$(ls ${WP_VOLUME_PLUGINS})
|
||||||
|
for dir in $plugins; do
|
||||||
|
echo -e ${YELLOW}"creating symlink : ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/"${RESET}
|
||||||
|
ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/
|
||||||
|
done
|
||||||
|
|
||||||
# https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
|
# https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
|
||||||
echo -e ${YELLOW}configuring the error logs...${RESET}
|
echo -e ${YELLOW}configuring the error logs...${RESET}
|
||||||
# Enable WP_DEBUG mode
|
# Enable WP_DEBUG mode
|
||||||
|
|||||||
Reference in New Issue
Block a user