I have one private repository at Bitbucket that I use to push my php code.
I would like to know if the best to have the code in my server Amazon EC2.
I cloned the repository on my server and update the code using ‘git pull’.
There is a better way to do that?
Take a look at capistrano or even some deploy building software. http://guides.beanstalkapp.com/deployments/deploy-with-capistrano.html
You do not have to be using ruby to deploy with capistrano