Skip to content

devcomo/capistrano-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Site

Capistrano examples used in my July ComoRichWeb Talk. Slides

Pre-requisites

This assumes you are running the same vagrant box I ran during the presentation that can be found here.

It is also assumed you have ruby installed, which I'll leave the sleuthing up to you. (Pssst... you should check out RVM ).

You will also need these gems:

  • capistrano
  • railsless-deploy

Steps

Host my.example.com
  ForwardAgent yes

  • you may need to ssh in and run ssh -T git@github.com and accept the key on the virtual machine / server
  • run cap deploy:setup
  • run cap deploy
  • wget http://my.example.com | cat
  • profit

Topic Branches

Not breaking from my usual setup, each topic I covered is divided into git branches.

  • static-site-simple - the base I started with... simply deploy the project to the remote server
  • exclude-files - excludes non-web files from deployment
  • post-deploy-hook uses a post-deploy hook to download a profile image from twitter and place it under the document root.

Enjoy!

About

Capistrano examples for the july meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages