I am developing a WordPress theme which is under version control using Git and in a local development area ( WAMP ). I push commits to Bitbucket using smartgit as a GUI. I have 2 branches, master and development. I want to deploy the development branch to a staging area (a WordPress install on my live server).
I have tried using ftploy which does achieve this; however it doesn't seem to allow me to choose which branch to deploy and I want to reserve deployment of the master branch for the actual final deployment. I am using shared hosting but I have SSH access.
How can I best achieve deployment of the development branch to the shared hosting? Git is not installed on the server (and can't be).
Navigate to cPanel's Git Version Control interface (cPanel >> Home >> Files >> Git Version Control). Locate the desired repository in the list of repositories and click Manage. Click the Pull or Deploy tab. Click Update from Remote to pull changes from the remote repository.
With Git it's quite simple. Push your work to the remote repository when you're ready, then login to the server, navigate to the directory that contains your app, and run git pull to update the app with your your latest changes.
GitHub offers deployment starter workflows for several popular services, such as Azure Web App. To learn how to get started using a starter workflow, see "Using starter workflows" or browse the full list of deployment starter workflows.
There is an article that suggest 7 apps for Git auto-deploy:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With