This gist is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are given this private URL.
Every gist with this icon (
) is private.
Every gist with this icon (
This gist is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
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
- SSH into your MediaTemple server.
- Put your public key into ~/.ssh/authorizedkeys2 with mode 0600
- Run
mtr generate_configand give your serveradmin username and password
Then, On Your Computer
- Have a file
config/database.yml.mtwith 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
Fork Of
gist: 8711 by
bjeanes
A completely up-to-date Cap...





