https://github.com/naveen17797/gitpress
Run your WP site on github pages, php innovation award winner https://www.phpclasses.org/package/12091-PHP-Make-a-WordPress-site-run-on-GitHub-pages.html
https://github.com/naveen17797/gitpress
docker-compose github github-pages-website hacktoberfest wordpress
Last synced: 26 days ago
JSON representation
Run your WP site on github pages, php innovation award winner https://www.phpclasses.org/package/12091-PHP-Make-a-WordPress-site-run-on-GitHub-pages.html
- Host: GitHub
- URL: https://github.com/naveen17797/gitpress
- Owner: naveen17797
- Created: 2021-05-19T14:58:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T11:33:43.000Z (over 3 years ago)
- Last Synced: 2024-07-31T19:45:10.608Z (over 1 year ago)
- Topics: docker-compose, github, github-pages-website, hacktoberfest, wordpress
- Language: PHP
- Homepage: https://naveen17797.github.io/gitpress
- Size: 1.48 MB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
README
# Gitpress
Run wordpress directly on github pages
## Gitpress won the innovation award for may 2021
Read more about this [https://naveen17797.github.io/gitpress-won-the-php-innovation-award/](here)
## Want to see live demo ?
Go to my github pages site at [https://naveen17797.github.io/](https://naveen17797.github.io/)
## What does this repo do ?
This helps to host your wordpress site in github pages
## How does it do it ?
1. It runs wordpress on your local docker container
2. It generates static files with the help of the plugin [simply static](https://github.com/patrickposner/simply-static) written by [Patrick Posner](https://patrickposner.dev/)
3. It pushes all the static files to your github pages
## How can i install ?
1. Clone the repo.
2. Run `docker-compose up`
3. Open http://localhost, set up your wordpress site
4. Add your github username and password ( or token )
5. Click on sync site on the top admin bar, thats it.

6. Now do that every time when you want to sync your local site to github pages.
## I want to backup my database
1. Stop the db container
2. Run `docker-compose stop db`
3. Run `docker-compose run --rm db-backup`
4. This will backup your database to backup folder.
## I want to restore my backup
1. Run `docker-compose run --rm db-restore`
2. This will restore your backup.
## Can i use it in my production environment ?
No