I was quite surprised that I couldn't find step-by-step instructions for phpBB git deployment to production environments.
So there are some articles that show how to set up a local branch for local development but still not a word about deployment to production servers.
What I've been thinking of:
Development
- Clone a repository:
git clone [email protected]:phpbb/phpbb.git - Remove the origin remote:
git remote remove origin - Add my own origin:
git remote add origin ... - Add an upstream remote:
git remote add upstream [email protected]:phpbb/phpbb.git - Checkout the 3.3.x code:
git checkout upstream/3.3.x - Update
.gitignoreto include my changes (extensions/templates/language files) (?) - Make some changes
- Get the recent upstream updates:
git pull upstream 3.3.x - Commit the changes
- Push the changes
Production
- Set up a bare repository on a production server
- Set up a post-receive hook that will move the "phpBB" folder to my webserver's "www" folder overwriting the existing folders
- Execute some scripts (?)
Please share how do you deploy the phpBB code to live production servers.