# Media Temple Capistrano Deployment Recipe ## With GitHub See comments in the files for explanation. This works flawlessly for me on MediaTemple + Git(Hub). # NOTE: this assumes that the application name on the grid container and the application name in GitHub are the same. ## To use: ### On the Server 1. SSH into your MediaTemple server. 2. Put your public key into ~/.ssh/authorized_keys2 with mode 0600 3. Run `mtr generate_config` and give your serveradmin username and password ### Then, On Your Computer 1. 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) 2. Modify the first 4 lines of the attached deploy.rb file 3. On your local computer, commit and push your changes to GitHub 4. Run `cap deploy:setup deploy:cold` 5. Navigate to your domain, and you should see your app running.