Skip to content

Instantly share code, notes, and snippets.

@bkerley
Created July 14, 2011 01:00
Show Gist options
  • Save bkerley/1081668 to your computer and use it in GitHub Desktop.
Save bkerley/1081668 to your computer and use it in GitHub Desktop.
design miami git notes

Original

On server:

  1. install wordpress
  2. install plugins, frameworks, themes
  3. use FTP to edit files, add images

Bryce-style

On desktop:

  1. make empty directory
  2. create repository ( git init )
  3. install wordpress, configure apache locally
  4. configure capistrano, use that

Simpler

On server:

  1. create repository ( git init )
  2. install wordpress
  3. commit wordpress installation ( git add -a ; git commit )
  4. install a plugin
  5. commit plugin installation ( git add -a ; git commit )
  6. use FTP to edit a file
  7. commit edit ( git add -a ; git commit )

Rails project

  1. create repository locally
  2. create app locally
  3. commit and push to repo
  4. configure capistrano
  5. cap production deploy

apache sees: /home/miamibeats-production/site/current/config.ru

the filesystem: /home/miamibeats-production/site/current -> /home/miamibeats-production/site/releases/201107132049

Git Submodule

/myproject/core => myproject_core
/myproject/core/theme-1 => myproject_theme1
/myproject/core/theme-a => myproject_themea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment