Aston J


Posts Tagged ‘git’

How to get Capistrano to ignore upload directories (Carrierwave)

Posted on: June 23rd, 2012 by AstonJ 7 Comments

As you probably know, Capistrano creates a fresh directory for your app every time you deploy a new version. So if you want some directories (or files) to be carried through to each version, such as files uploaded by users, then we just need to tell Capistrano that they are shared – and to use the /shared directory for these files instead. Which is done by creating symbolic links. Here’s how.

Add this to your deploy.rb file:
(more…)

Intro to Git – 5 mins to see why it’s awesome

Posted on: June 9th, 2012 by AstonJ No Comments

This is more a handy reference for myself, but it also acts as a very quick intro to why git is awesome and well worth using. The main difference here is I remind you what the state of your working directory is as you make changes (as this was what confused me previously – as I wasn’t quite sure what was going on). I assume you’ve installed git already – and know what it is.
(more…)