Slide 1

Slide 1 text

Version control, workflows & deployments (with WordPress)

Slide 2

Slide 2 text

Me • PHP / Expression Engine / sysadmin @ statik.be • WordPress developer/consultant @ on-edge.be • WordPress core contributor

Slide 3

Slide 3 text

Version control, workflows & deployments (with WordPress)

Slide 4

Slide 4 text

Have you ever: Accidentally removed to file over FTP?

Slide 5

Slide 5 text

Have you ever: Uploaded changes, broke the site and now what?

Slide 6

Slide 6 text

Have you ever: Renamed a file to .old as a backup?

Slide 7

Slide 7 text

Have you ever: Noticed a page was broken and your last change was a month ago?

Slide 8

Slide 8 text

! ! FTP " !

Slide 9

Slide 9 text

Version control to the rescue!

Slide 10

Slide 10 text

.git Git is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows.

Slide 11

Slide 11 text

Basics • git init • git add • git commit Remotes • git pull/push • git checkout

Slide 12

Slide 12 text

try.github.io

Slide 13

Slide 13 text

Apps • Sourcetree (Windows, Mac OS, Linux) • Tower (Mac OS) • Github (Windows, Mac OS, Linux) Resources • http://git-scm.com/book/en/v2 • http://www.git-tower.com/learn/

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Services • github.com • bitbucket.org • codebasehq.com • beanstalkapp.com • dploy.io

Slide 16

Slide 16 text

Branches! !

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Other features • git blame (who changed what and why) • git bisect (find exactly where something broke) • .gitignore (uploads, config, backup) • git submobules (inculdes other git repo's in yours)

Slide 21

Slide 21 text

Git flow • Branching workflow • Built into SourceTree & Tower Branch model • master/develop • features (starts from develop) • releases (merges develop into master) • hotfix (starts from master)

Slide 22

Slide 22 text

git push > deploy • Know when your changes are live • Roll back when something breaks • Everyone can deploy • NO MORE FTP

Slide 23

Slide 23 text

Services • beanstalkapp.com (hosting + deploy) • dploy.io (hosting + deploy) • deployhq.com (deploy) • codeship.io (ci + deploy)

Slide 24

Slide 24 text

⌘ + ?

Slide 25

Slide 25 text

⌘ + Q [email protected] twitter.com/jannemans github.com/janhenckens