Production deploy failed. Resolve by SSH & resolve git conflicts.
Last updated
Last updated
Sometimes when I deploy to production on laravel forge, the deploy fails with a message about "divergent branches" like this:
Jason Beggs helped me troubleshoot and showed me how to do it myself in the future, in .
Steps to fix:
It will ask me for a password for my SSH key. I saved this in 1Password under SSH Keys. Copy and paste it into terminal.
Once you're SSH'd in... to work on the production app (not staging), run this
Run git pull --ff to pull the changes from GitHub and resolve conflicts if there are any
Run git push to push up the changes from production
Trigger a deploy on Forge to make sure all the deploy scripts run
In Forge, click the "Deploy" button.