It seems you are using php, you should be good to go with capistrano. It is very easy to use capistrano for deployment with rails, but it can also be tricked a bit for use in php.
Basically what you do with capistrano is
- Tell me which application server you are using.
- Tell the database server
- Tell the web server (in most cases the web server, application server and db server are the same)
- Specify the git repository with the branch you want to deploy from
After configuration, you can deploy using capistrano with a single command. You can even roll back your deployments from some of the backups created by capistrano. Now create some repetitive tasks, such as copying configuration files, such as database configurations (which are usually ignored in git), you create some tasks that simply create symbolic links or copy files in the appropriate place. These tasks will be called using deploy_hookes, for example. after_symlink.
Here you can find more about capistrano - https://github.com/capistrano/capistrano/wiki It comes with very good documentation, after receiving a review you can find your approach to the infrastructure for this.
source share