VersionEEringWhy and how to use versioncontrol with ExpressionEngine.
What is version control?
What is version control?A program that tracks changes to files andfolders for you.
Also goes by thesenames.Source Control Manager (SCM)Revision Control System (RCS)Version Control System (VCS)That-Thing-Th...
Different flavors?Yup. Each has its own way of tracking yourchanges. Here are a few:  CVS - SVN - Git - Mercurial - Bazaar ...
What kinds of files? Text! But also:  Graphics  Binary  WHATEVER YOU WANT.
Why use version control?
Becausethissucks.
Becausethissucks.
Because this really,really sucks.
How to get started.No servers, nothing fancy -this is all local, baby. So no excuses.
1. Pick a system.We’re going with Git.
2. Install it on yourcomputer.http://git-scm.com/download
3. Set up a repository for your existing project.$	  cd	  ~/Sites/myproject                         Change to the project ...
4. Make some changes, and commit them.$	  git	  status                                   Tell me what’s changed. (New file!...
5. Rinse and repeat untilyou’re ready to share.
A Basic WorkflowOne way to use version control in practice,with actual live websites.
1. Define your environments.Some popular ones:- Local- Development (overkill for team of one)- Staging (can be same as Deve...
Workflow show ‘n tell
Git and EE, sitting in a tree.
Gotcha #1:Paths.Let’s play with settings!
1. Make all paths in theControl Panel relative.EE1: Admin > System Preferences > GeneralConfigurationEE2: Admin > General C...
Don’t forget uploaded filesand generated images.EE1:Admin > System Preferences > Captcha Preferences(Each upload destinatio...
Gotcha #2:Environment variables.Let’s play with config files!
Gotcha #3:User-generated files.Keeping filesystems in sync.
Gotcha #4:Databases.Pick your poison.
Further ResourcesNew to version control? Check out Version Controlfor Designers: http://hoth.entp.com/output/git_for_desig...
VersionEEring
Upcoming SlideShare
Loading in...5
×

VersionEEring

872

Published on

Why and how to use version control with an ExpressionEngine website. Version control is essential to good development practices, but setting it up with a database-driven website can be tricky.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
872
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

VersionEEring

  1. 1. VersionEEringWhy and how to use versioncontrol with ExpressionEngine.
  2. 2. What is version control?
  3. 3. What is version control?A program that tracks changes to files andfolders for you.
  4. 4. Also goes by thesenames.Source Control Manager (SCM)Revision Control System (RCS)Version Control System (VCS)That-Thing-That-Just-Saved-My-Ass
  5. 5. Different flavors?Yup. Each has its own way of tracking yourchanges. Here are a few: CVS - SVN - Git - Mercurial - Bazaar Darcs - Perforce - Fossil - BitKeeperhttp://en.wikipedia.org/wiki/List_of_revision_control_software
  6. 6. What kinds of files? Text! But also: Graphics Binary WHATEVER YOU WANT.
  7. 7. Why use version control?
  8. 8. Becausethissucks.
  9. 9. Becausethissucks.
  10. 10. Because this really,really sucks.
  11. 11. How to get started.No servers, nothing fancy -this is all local, baby. So no excuses.
  12. 12. 1. Pick a system.We’re going with Git.
  13. 13. 2. Install it on yourcomputer.http://git-scm.com/download
  14. 14. 3. Set up a repository for your existing project.$  cd  ~/Sites/myproject Change to the project folder.$  git  init Initialize the repository.$  git  add  . Add everything in the project folder to the repository.$  git  commit  -­‐m  "Initial  commit." Make your first commit.
  15. 15. 4. Make some changes, and commit them.$  git  status Tell me what’s changed. (New file!)$  git  add  index.html Add the new file to the repository.$  git  status Tell me what’s changed. (Just making sure we didn’t miss anything.)$  git  commit  -­‐m  "Added  homepage." Commit the change.
  16. 16. 5. Rinse and repeat untilyou’re ready to share.
  17. 17. A Basic WorkflowOne way to use version control in practice,with actual live websites.
  18. 18. 1. Define your environments.Some popular ones:- Local- Development (overkill for team of one)- Staging (can be same as Development)- Live
  19. 19. Workflow show ‘n tell
  20. 20. Git and EE, sitting in a tree.
  21. 21. Gotcha #1:Paths.Let’s play with settings!
  22. 22. 1. Make all paths in theControl Panel relative.EE1: Admin > System Preferences > GeneralConfigurationEE2: Admin > General Configuration
  23. 23. Don’t forget uploaded filesand generated images.EE1:Admin > System Preferences > Captcha Preferences(Each upload destination) Admin >ChannelAdministration > File Upload Preferences(Each channel) Admin > Channel Administration >Channel Management > Edit Channel PreferencesEE2: Admin > Content Administration > File UploadPreferences
  24. 24. Gotcha #2:Environment variables.Let’s play with config files!
  25. 25. Gotcha #3:User-generated files.Keeping filesystems in sync.
  26. 26. Gotcha #4:Databases.Pick your poison.
  27. 27. Further ResourcesNew to version control? Check out Version Controlfor Designers: http://hoth.entp.com/output/git_for_designers.htmlNot new to version control, but new to Git? Checkout Git Reference: http://gitref.org/More on the topic of Git and EE: http://gititon.masugadesign.com/ <-- A++ WOULD RECOMMEND http://j.mp/ee2multiserver
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×