So, this is my actual workflow:

  • With my IDE (Webstorm or Aptana, I'm on windows) I create a project and I synchronize remotely via (s)ftp
  • I then create a git repository and push it on bitbucket
  • Everytime i upgrade the project in local , it syncs with the production version on the server. I then commit and push the changes
  • therefore, my actual environment is local > production

I would like to switch to multiple environments (local > development > production), where local is my pc and development/production are on the same server (dev in a subdomain), using ee master config

I read a bit and I found two solutions:

1) git/bitbucket + ftp + deployhq

In practice: local version synchronized remotely (dev.mysite.com pointing to a subfolder), then push in the repository on bitbucket and finally deployed into production via deployhq

pro: maybe the simplest solution

cons: deployhq or beanstalk are payments services (free version of deployhq has 1 repository and limited deploy)

2) git and ssh installed on the server

I copy these steps from another discussion:

  1. do a git init in production server (is this safe?)
  2. clone the repo from production to staging server
  3. developers clone the repo from the staging to their local machine
  4. push files to the staging server after finish changing
  5. when staging is ready, push everything to the production

Are these steps correct? I'm not very familiar with git, so can you give me an example of the commands to use? I would use this solution. Also, can I still use bitbucket?

Are there better solutions? Thanks in advance

  • How exactly is deployhq limited in the free version? Aug 15, 2013 at 18:35
  • 10 deploy per day Aug 15, 2013 at 18:55
  • Oh right, i had no idea! I think that must be a recent thing, the only limitation used to be amount of projects. Aug 15, 2013 at 22:15

1 Answer 1


Here's how I'm deploying the majority of sites http://digitalevangelist.net/blog/git-deployments

I do have a paid DeployHQ account as well but that's generally for larger projects deploying to multiple environments with emails going to stakeholders when there's been a deployment.

  • Hey steven! Yeah deployhq is very useful, but i prefer your new method (or other methods). Thanks Aug 15, 2013 at 23:09
  • Yeah, using Git hooks is much better than having to ssh into a server each time and pull from the master repo. Much better just to be able to 'git push production master' Aug 16, 2013 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.