DISQUS

Git and Rails: Using Git to Manage and Deploy your Rails Apps | Join The Conversation

  • James Throgmorton · 2 years ago
    Great screencast! I recently caught a video of Linus Torvalds presenting Git to Google. He was passionate about how important Git is to the world.

    http://www.youtube.com/watch?v=4XpnKHJAok8

    The real message of Git is the message of Decentralization. Distributing the work of merging and branching is important as we all start to take individual responsibility for creating code. I love using Git.

    The "Starfish and the Spider"
    http://www.amazon.com/Starfish-Spider-Unstoppab...
    Discusses how the Open Source movement is changing the world. It is a powerful read for anyone using Rails, Git, or participating in our modern world.

    Great work!
  • chacon · 2 years ago
    Hmm - sorry Chris, I'd like to help, but I'm stumped. It's an h.264 quicktime file, encoded by iMovie. I can't imagine why a Mac wouldn't play it. Does the flv work for you? If you'd like it in another format, I can certainly re-encode it.
  • Saimon Moore · 2 years ago
    Yeah, the .mov file gives the same error under quicktime for windows.
  • Chris · 2 years ago
    Yep, I downloaded the flv and that works. Tried downloading the mov a couple more time and those failed as well. Try not using .264. The best codec is usually Sorenson for web quicktimes. Good compatibility and also very small file sizes.

    For for using up your S3 bandwidth!
  • chacon · 2 years ago
    OK, I put up a new movie using ffmpeg's mpeg4 - hopefully that will work for you. It's here:

    http://s3.amazonaws.com/chacon/GitTutorial-mpeg...

    Let me know if that is better, and I will link it as well.
  • Jonathan del Strother · 2 years ago
    The new one works great in QuickTime 7.3, thanks
  • Peter Cooper · 1 year ago
    The original file doesn't play in QuickTime, but it plays in VLC just great :)
  • Justin Pease · 2 years ago
    Quicktime file won't play for me either on OS X 10.4.10
  • Robert · 2 years ago
    I have a question, I think your screencast is awesome. I'm having some problems with 2.1. It won't let me cold:deploy. I've read up everywhere but can't find any information.

    It basically hangs up on me for ssh and can't get past it. I had an CAP1 working with my server.

    Can you explain to me the lines below, and maybe guide me in correcting this issue?
    ssh_options[:paranoid] = false
    set :user, 'deploy'
    set :runner, 'deploy'
  • chacon · 2 years ago
    the 'ssh_options' make it so NetSSH doesn't complain about mismatched keys in your host file, which is a pain mostly because I was using weird vmware servers to run the other servers - normally I don't need that - it just makes NetSSH less strict about who it will connect to.

    the set :user and set :runner commands determine who Capistrano tries to log in as and run the 'spin' script / mongrels, respectively. if you set :user to 'bob', it will try to ssh in as bob@server.com rather than who youre currently logged in as. if you set :runner to 'mongrel', it will try to start/restart the servers as the user 'mongrel' rather than 'bob'.

    hope that helps. if you have specific error messages, let me know.
  • Aidan Finn · 2 years ago
    Thanks a lot for putting up this screencast. I'm in the process of switching my workflow from svn to git on a couple of projects and it's really helped me to do it quickly.
  • gaveen · 2 years ago
    Thanks for the excellent screencast and for the trouble you went into making this. It really helps. A slight misunderstanding might be there when you said 'no connection to the git server'.

    Just FYI: I've downloaded the file and watched it. Works fine with MPlayer on Linux.

    Thanks again
  • dermotbrennan · 1 year ago
    Yeah, great screencast! Really learned a lot from it. and not just the git stuff. I had seen deploy_via :remote_cache but didn't realise what it was.
  • saurabh purnaye · 1 year ago
    really informative.. this solved most of my problems
  • jaigouk · 1 year ago
    Thanks Scott !!! IT WORKS !!!

    I'm new to capistrano and git. Peepcode screencast was little bit hard for me at first. Because
    deploy environment and settings are slightly different. And I didn't know precisely what permissions needed. Tons of capistrano-emails didn't helped me much. Those were too specific. I found your blog by accident (googling). I think 5 days were passed since I deciede to set up my server. I really appreciate your work. I was so desperate. Thank you.
    YOU HELPED ME OUT AND IT WORKS.
  • jaigouk · 1 year ago
    I made it on cygwin. hahaha~
  • andres · 1 year ago
    Absolutely useful,
    thank you
  • kim Friesen · 1 year ago
    If you rename the file from .mov to .mp4 in OS X it will open fine in QuickTime
  • meekish · 1 year ago
    Thanks for putting this together!

    I tried the quicktime link twice. It downloaded a corrupt file both times.
  • Chris Bailey · 1 year ago
    Scott, thanks much for this, very useful!
  • Diego · 1 year ago
    Git rocks, as well as Linux and Linus Torvalds
  • Diego Viola · 1 year ago
    This is also very nice to have it as a reference.

    http://zrusin.blogspot.com/2007/09/git-cheat-sh...
  • jujudellago · 1 year ago
    thanks for the great introduction, switched to git and lovin' it !

    just a note about the install, I'm not a linux guru so I didn't know how to solve some issues with the manual compiling (ubuntu 7.10, had some curl error messages...) so I just
    #> apt-get install git-core

    and it gave me git version 1.5.2.5 .... the rest works the same way.

    I also installed the gem git-rails ( gem install git-rails) who allows to enter the command "git-rails init" inside a project to define the .gitignore automatically
  • Markús · 1 year ago
    Man, this is a great great screencast, very usefull, clear and covering all that I was wondering about Git and Capistrano. Thanks a lot!
  • Adam Groves · 1 year ago
    Many thanks Scott for your highly informative tutorial.
  • chalkers · 1 year ago
    Fantastic tutorial. Nice intro to git.
  • kesor · 1 year ago
    Linus Torvalds was passionate ??
    Are you kidding?

    He was acting like a real asshole.
  • Binh Ly · 1 year ago
    Is there an updated link to download the screencast? It would be nice to have a local copy.
  • Anonymous Coward · 2 years ago
    I actually think you did a better job of explaining Git+Capistrano integration than the PeepCode screencasts. Thanks!
  • yamahak · 2 years ago
    This was practically done. I think you introduced a lot of tools from the rails deployment jargon with the right emphasis. I might finally check'em out. Thx.

    And yes better than the peepcode ones.
  • Chris · 2 years ago
    I tried to download the quicktime twice already and it hasn't worked. I have Leopard with Perian and Flip4Mac installed. It says "This is not a movie file"