mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-05 12:02:54 +08:00
bind mount to app path then sync
This commit is contained in:
parent
7c47f1d9aa
commit
a21014b327
2 changed files with 5 additions and 1 deletions
|
@ -32,6 +32,7 @@ To quickly try out the plugin, without affecting your other WordPress installati
|
|||
- `docker build -t leonstafford/wordpress-static-html-plugin:latest # add zip extension and WP cli on top of latest WordPress Docker image
|
||||
- `docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb` # run a MySQL container for the WordPress one to later use
|
||||
- `docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d wordpress` # run the official WordPress image, linking to your MySQL instance
|
||||
- sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v /home/leon/wordpress-static-html-plugin/:/app leonstafford/wordpress-static-html-plugin # run the customized WP image, bind mounting the dev sources to /app dir
|
||||
- `docker exec -it plugindevwp bash` # get CLI access to the container
|
||||
- `sh /post_launch.sh` # install WP; install and activate static output plugin
|
||||
- `exit` # leave the container's shell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue