Run wordpress directly on github pages
Read more about this https://naveen17797.github.io/gitpress-won-the-php-innovation-award/
Go to my github pages site at https://naveen17797.github.io/
This helps to host your wordpress site in github pages
- It runs wordpress on your local docker container
- It generates static files with the help of the plugin simply static written by Patrick Posner
- It pushes all the static files to your github pages
- Clone the repo.
- Run
docker-compose up
- Open http://localhost, set up your wordpress site
- Add your github username and password ( or token )
- Click on sync site on the top admin bar, thats it.
- Now do that every time when you want to sync your local site to github pages.
- Stop the db container
- Run
docker-compose stop db
- Run
docker-compose run --rm db-backup
- This will backup your database to backup folder.
- Run
docker-compose run --rm db-restore
- This will restore your backup.
No