Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying with Git/Github

We are trying to setup an automated deployment environemt with Git/Github. We have 3 different environments; local, test and live. When we add a new feature on local, we first upload files to test server to test the newly created feature. If everything is OK, we than upload all files to live server. But this "uploading" process is not a perfect solution, as we sometimes forget to upload some files. Btw we also have mobile app on iPhone and Android, so mobile may be the fourth environment for us.

What we try to do is to setup an automated deployment environment. When we commit a new feature to test server, after testing this new feature we want to push it to live server.

There may be lots of commits on the test server but we want to push specific commits to live server. We couldn't find how to cope with 3-4 environments and not to mess codes. How will we push correct codes to live server? How will we manage our test and live servers? Are there any good recources telling how to setup different environments and deployment processes with Git/Github? Are there any articles to tell us what to do step-by-step?

I've read those articles but none of them tell how to cope with local, test and live environments.

  • http://ryanflorence.com/simple-git-deployment/
  • http://ryanflorence.com/deploying-websites-with-a-tiny-git-hook/
  • http://toroid.org/ams/git-website-howto
  • http://danielmiessler.com/study/git/

EDIT 2012-03-09: I've found http://beanstalkapp.com/ and http://springloops.com and they both seem very good at deployment. I'm not sure if I can trust those services but they both do exactly what I want. I will test both and share my results here to inform everyone.

like image 745
Burak Erdem Avatar asked Mar 08 '12 14:03

Burak Erdem


People also ask

Can you deploy using GitHub?

You can run your deployment workflow on GitHub-hosted runners or on self-hosted runners.

How does GitHub deployment work?

The Deployments API provides your projects hosted on GitHub with the capability to launch them on a server that you own. Combined with the Status API, you'll be able to coordinate your deployments the moment your code lands on the default branch. This guide will use that API to demonstrate a setup that you can use.


1 Answers

I've finally found what I was looking for. http://beanstalkapp.com seems the best choice. It has automatic deployment feature and supports Git. After testing it for a week, I can say that it works very stable and fast. Thanks everyone for helping me and trying to show me the way.

like image 162
Burak Erdem Avatar answered Oct 02 '22 18:10

Burak Erdem