I am using the Apps platform to deploy a Statamic site, and I have trouble customizing the Github connection for my needs.
Statamic is a CMS framework built on top of Laravel, which uses a flat-file system to store its content. Statamic offers a Git integration that uses automatic commits when users make changes to the content. So my problem with the Apps platform, is that it makes an auto-deploy every time a new commit appears in the repository. So if I set up the Git integration in Statamic every time a user changes the content it would make an unnecessary deployment.
The official Statamic documentation recommends to customize the automatic commit messages and update the deploy script to ignore these type of commits. I checked the official Digital Ocean docs about the options I can use in the Apps spec file but couldn’t find anything useful.
I see I can set
false to have full control over the deployment, but it’s not the most ideal solution for my problem.
Is there anything I can do to make this work automatically?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
Interesting use-case! Here’s a possible solution:
Create another branch (eg.
production) and set that as the auto-deploy branch in App Platform. Then configure your statamic git integration to pull from your default branch (eg.
This way content changes will be push into the default and pulled by statamic automatically without triggering a rebuild on App Platform. When changes that require a rebuild a merge to the
productionbranch will trigger that.