mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-09-05 12:02:54 +08:00
Docker quickstart added to readme
This commit is contained in:
parent
28bd2a88fe
commit
0410da26e9
1 changed files with 17 additions and 0 deletions
17
readme.md
17
readme.md
|
@ -16,6 +16,7 @@ You can [see a working example here](https://leonstafford.github.io/demo-site-wo
|
|||
|
||||
- selectively export only changed pages since last output
|
||||
- deploy your static files via sFTP, SCP, Dropbox, etc
|
||||
- have a one-liner provisioning script for testing/development
|
||||
|
||||
## Development
|
||||
|
||||
|
@ -23,6 +24,22 @@ This repo contains the latest code, which you can clone/download to get the blee
|
|||
|
||||
If you'd like to contribute, please follow the usual GitHub procedures (create an Issue, fork repo, submit PR). If you're unsure about any of that, contact me and I'll be happy to help.
|
||||
|
||||
## Docker quickstart
|
||||
|
||||
To quickly try out the plugin, without affecting your other WordPress installations:
|
||||
|
||||
- [install Docker](http://docker.com)
|
||||
- `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
|
||||
- `docker exec -it plugindevwp bash` # get CLI access to the container
|
||||
- `docker-php-ext-install zip` # install zip extension for PHP, which the plugin requires
|
||||
- `service apache2 reload` # enables new extension to be used
|
||||
- `exit` # leave the container's shell
|
||||
- `docker ps` # get WordPress container's id so you can connect from the host
|
||||
- `docker inspect __yourcontainerid__ | grep Address` # get IP for connecting in your browser
|
||||
- open IP in browser and perform WP installation as usual
|
||||
- install the plugin by searching by its name, else go back into container and use `wp-cli` method
|
||||
|
||||
## Support
|
||||
|
||||
Development is done in my personal time. If you would like to see some new features added, bugs fixed, etc, think about sending me a donation for motivation ;)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue