This setup will allow for a CakePHP site to deploy to a server.
##Requirments:
- Capistrano v3.1 or above
- SSH Kit: https://github.com/capistrano/sshkit
- Capistrano Composer: https://github.com/capistrano/composer
- Use ssh-copy-id to allow your machine to connect to your server without a password e.g. ssh-copy-id user@hostname.example.com
- Place the downloaded Cap folder in your app directory
- Configure your Deploy.rb file
- Configure your stages e.g. Production.rb and Staging.rb
- On the server, set up the shared folder and drop in the linked folders & files
- Commit the latest version of your app to your repoordered
- In terminal, change directory into the cap folder, eg cd /var/www/mysite/app/cap
- Use Capistrano to deploy the site, e.g. cap production deploy