See comments in the files for explanation. This works flawlessly for me on MediaTemple + Git(Hub).
- SSH into your MediaTemple server.
- Put your public key into ~/.ssh/authorized_keys2 with mode 0600
- Run
mtr generate_config
and give your serveradmin username and password
- Have a file
config/database.yml.mt
with your Media Temple MySQL details (you can delete it once your site is running, and it should not be in your git repository) - Modify the first 4 lines of the attached deploy.rb file
- On your local computer, commit and push your changes to GitHub
- Run
cap deploy:setup deploy:cold
- Navigate to your domain, and you should see your app running.