Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy web project under Git version control to shared hosting [closed]

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).

like image 517
byronyasgur Avatar asked Feb 20 '13 00:02

byronyasgur


People also ask

How do I deploy a project from GitHub to cPanel?

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.

How does git deployment work?

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.

Can we deploy from GitHub?

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.


1 Answers

There is an article that suggest 7 apps for Git auto-deploy:

  • Beanstalk — http://beanstalkapp.com
  • Deploy — https://www.deployhq.com
  • Springloops — http://www.springloops.io
  • Wercker — http://wercker.com
  • Octopus Deploy [.NET] — https://octopusdeploy.com
  • Capistrano [Ruby] — http://capistranorb.com
  • Bamboo + Phing [PHP]— https://www.atlassian.com/software/bamboo
like image 182
Abdrahmn_msi Avatar answered Sep 29 '22 07:09

Abdrahmn_msi