live changes in cp with forge and DO #4589
-
My setup is Laravel Forge/Digital Ocean and bitbucket repo, I have quick deploy setup with a deploy script that looks like this:
So far this works as it should to deploy local changes pushed to my repo. What I'm wondering is what happens if I make changes in the live version CP. I'm assuming those changes don't get automatically pushed to my repo. Do I simply run a git push in the commands section of forge? The obvious answer is probably try and find out, but I'm still learning git and don't want to screw something up that I can't fix! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you're using the Git integration built into Statamic, you can configure it to automatically push any changes made by Statamic on the server to your Git repo. Add this to your
You can also add a few lines to your Forge deploy script so any pushes to the repo don't trigger a full redeploy. Documented over on Statamic.dev. |
Beta Was this translation helpful? Give feedback.
If you're using the Git integration built into Statamic, you can configure it to automatically push any changes made by Statamic on the server to your Git repo. Add this to your
.env
.You can also add a few lines to your Forge deploy script so any pushes to the repo don't trigger a full redeploy. Documented over on Statamic.dev.