SlideShare une entreprise Scribd logo
1  sur  112
Less ‘Oh Sh*t’ With GIT
How having a GIT-based workflow can make your life infinitely easier
What with a who-now?




                       2
What with a who-now?
             • Who the hell are you?
             • What the hell are you
               talking about?

             • What the hell is a
               ‘Workflow’ ?

             • What the hell is
               ‘GIT’?

             • Oh. Why the hell am I
               not using this thing?


                                       2
Who the hell are you?




                        3
Who the hell are you?




                        3
Who the hell are you?
              • Richard Tape




                               3
Who the hell are you?
              • Richard Tape
              • Sticky, sello, masking,
                 video, worm. You’re
                 welcome




                                          3
Who the hell are you?
              • Richard Tape
              • Sticky, sello, masking,
                 video, worm. You’re
                 welcome

              • Working with WP
                 professionally for >3
                 years. Thanks Mike!




                                          3
Who the hell are you?
              • Richard Tape
              • Sticky, sello, masking,
                 video, worm. You’re
                 welcome

              • Working with WP
                 professionally for >3
                 years. Thanks Mike!

              • @RichardTape




                                          3
Who the hell are you?
              • Richard Tape
              • Sticky, sello, masking,
                 video, worm. You’re
                 welcome

              • Working with WP
                 professionally for >3
                 years. Thanks Mike!

              • @RichardTape
              • http://rich.is/ (coming
                 soon) but have site at
                 http://iamfriendly.com/




                                           3
4
4
!important




             4
!important
             • Here’s what I’m not
               saying:




                                     4
!important
             • Here’s what I’m not
               saying:
               ★   That my WorkFlow is the One
                   True Way ©




                                                 4
!important
             • Here’s what I’m not
               saying:
               ★   That my WorkFlow is the One
                   True Way ©


               ★   That what I do is ‘right’




                                                 4
!important
             • Here’s what I’m not
               saying:
               ★   That my WorkFlow is the One
                   True Way ©


               ★   That what I do is ‘right’


               ★   That you should copy what I do
                   without having a basic
                   understanding of what you’re
                   doing




                                                    4
!important
             • Here’s what I’m not
               saying:
               ★   That my WorkFlow is the One
                   True Way ©


               ★   That what I do is ‘right’


               ★   That you should copy what I do
                   without having a basic
                   understanding of what you’re
                   doing

               ★   Manchester City deserved to
                   win the Premiership Title this
                   year




                                                    4
5
What the hell are you talking
about, then?




                                5
What the hell are you talking
about, then?

• What is a Workflow and why do I need one?




                                             5
What the hell are you talking
about, then?

• What is a Workflow and why do I need one?
• Richard, what were you doing this time last year?




                                                      5
What the hell are you talking
about, then?

• What is a Workflow and why do I need one?
• Richard, what were you doing this time last year?
• Haha. That’s ridiculous. You’re an idiot. What are you doing now,
  though?




                                                                      5
What the hell are you talking
about, then?

• What is a Workflow and why do I need one?
• Richard, what were you doing this time last year?
• Haha. That’s ridiculous. You’re an idiot. What are you doing now,
  though?

• But I already have my way of doing things and it works great.
  When do you stop talking? You’re boring.




                                                                      5
What the hell are you talking
about, then?

• What is a Workflow and why do I need one?
• Richard, what were you doing this time last year?
• Haha. That’s ridiculous. You’re an idiot. What are you doing now,
   though?

• But I already have my way of doing things and it works great.
   When do you stop talking? You’re boring.

• OK, OK, as it’d apparently be ‘rude’ if I got up and left, you might
   as well tell me about this ‘GIT’ thing. ENTERTAIN ME.


                                                                         5
6
What is a Workflow?




                     6
What is a Workflow?
You’re going to crack out a dictionary definition aren’t you?
You’re so predictable.




                                                               6
What is a Workflow?
You’re going to crack out a dictionary definition aren’t you?
You’re so predictable.

1. The scheduling of independent jobs on a computer.




                                                               6
What is a Workflow?
You’re going to crack out a dictionary definition aren’t you?
You’re so predictable.

1. The scheduling of independent jobs on a computer.


2.  The set of relationships between all the activities in a
project, from start to finish. Activities are related by different
types of trigger relation. Activities may be triggered by
external events or by other activities.




                                                                    6
What is a Workflow?
You’re going to crack out a dictionary definition aren’t you?
You’re so predictable.

1. The scheduling of independent jobs on a computer.


2.  The set of relationships between all the activities in a
project, from start to finish. Activities are related by different
types of trigger relation. Activities may be triggered by
external events or by other activities.

3. The movement of documents around an organisation for
purposes including sign-off, evaluation, performing activities
in a process and co-writing.

                                                                    6
7
And in English, please?




                          7
And in English, please?

How you go about your day-to-day
 tasks and the systems you put in
place to allow you to do those tasks
             more easily



                                       7
8
Richard, what were you doing
this time last year?




                               8
Richard, what were you doing
this time last year?

• Work locally using a MAMP setup.




                                     8
Richard, what were you doing
this time last year?

• Work locally using a MAMP setup.
• WordPress Multisite installation, each ‘project’ was a new
  site.




                                                               8
Richard, what were you doing
this time last year?

• Work locally using a MAMP setup.
• WordPress Multisite installation, each ‘project’ was a new
  site.
• When happy with work, sFTP to live site. Cross fingers and
  sacrifice a goat in the hope that it wouldn’t break.




                                                               8
Richard, what were you doing
this time last year?

• Work locally using a MAMP setup.
• WordPress Multisite installation, each ‘project’ was a new
   site.
• When happy with work, sFTP to live site. Cross fingers and
   sacrifice a goat in the hope that it wouldn’t break.

• For edits: either edit file locally and re-upload or, if I was in
   a rush, edit the file on the live server. Yes, I’m going straight
   to hell.




                                                                      8
Richard, what were you doing
this time last year?

• Work locally using a MAMP setup.
• WordPress Multisite installation, each ‘project’ was a new
   site.
• When happy with work, sFTP to live site. Cross fingers and
   sacrifice a goat in the hope that it wouldn’t break.

• For edits: either edit file locally and re-upload or, if I was in
   a rush, edit the file on the live server. Yes, I’m going straight
   to hell.

• For database: local and live sites were entirely separate.


                                                                      8
Live file
editing?
Live file
editing?
Live file
editing?
Hahaha. HAHAHAHA.
AAAAHAHAHAHAHA.

You’re an idiot.




(Secretly, I sometimes do this too. But don’t tell
anyone)
11
What are you doing now?




                          11
What are you doing now?
• All source files (including WP core) are version controlled
  in GIT - stored in local repos and on github




                                                               11
What are you doing now?
• All source files (including WP core) are version controlled
  in GIT - stored in local repos and on github

• I make all edits locally (even though I am sysadmin on my
  live server, I have intentionally revoked my rights to edit
  files directly)




                                                                11
What are you doing now?
• All source files (including WP core) are version controlled
  in GIT - stored in local repos and on github

• I make all edits locally (even though I am sysadmin on my
  live server, I have intentionally revoked my rights to edit
  files directly)

• Commit to local git repo. Push to github.




                                                                11
What are you doing now?
• All source files (including WP core) are version controlled
  in GIT - stored in local repos and on github

• I make all edits locally (even though I am sysadmin on my
  live server, I have intentionally revoked my rights to edit
  files directly)

• Commit to local git repo. Push to github.
• Post Commit hooks on github automatically pulls all edits
  onto staging server




                                                                11
What are you doing now?
• All source files (including WP core) are version controlled
  in GIT - stored in local repos and on github

• I make all edits locally (even though I am sysadmin on my
  live server, I have intentionally revoked my rights to edit
  files directly)

• Commit to local git repo. Push to github.
• Post Commit hooks on github automatically pulls all edits
  onto staging server

• If happy on staging, deploy changes to live

                                                                11
12
GIT? Repo? Staging? Deploy?




                              12
GIT? Repo? Staging? Deploy?
• GIT is a VCS - a version control system (a ‘distributed’ one
   at that) and source code management (SCM)
   ★   It keeps track of all changes you make to your files
   ★   You can think of it like the Revisions System in WordPress




                                                                    12
GIT? Repo? Staging? Deploy?
• GIT is a VCS - a version control system (a ‘distributed’ one
   at that) and source code management (SCM)
   ★   It keeps track of all changes you make to your files
   ★   You can think of it like the Revisions System in WordPress




• Repo is short for Repository.
   ★   It’s sort of like a database
   ★   When you make changes to your files, you ‘commit’ them to your local repo
   ★   If you have made a mistake, you can simply ‘roll back’ to a previous state
   ★   Sort of like an ‘undo’ feature for all of your files




                                                                                    12
GIT? Repo? Staging? Deploy?




                              13
GIT? Repo? Staging? Deploy?
• Staging
  ★   An intermediary between your local environment and the live site
  ★   Ideally, the staging server and the live server have identical setups
  ★   Means you can see exactly what your changes will look like on the live site without the
      panic of ‘guessing’




                                                                                                13
GIT? Repo? Staging? Deploy?
• Staging
  ★   An intermediary between your local environment and the live site
  ★   Ideally, the staging server and the live server have identical setups
  ★   Means you can see exactly what your changes will look like on the live site without the
      panic of ‘guessing’




• Deploy
  ★   The equivalent of FTP’ing all your changes elsewhere

  ★   When you ‘deploy’ something you’re effectively “making it live”




                                                                                                13
14
Hang on. So you don’t FTP?
Anything?




                             14
Hang on. So you don’t FTP?
Anything?

• Nope. Not a sausage.




                             14
Hang on. So you don’t FTP?
Anything?

• Nope. Not a sausage.

• If I need to install a plugin I do it locally. Then commit and
   push to github.




                                                                   14
Hang on. So you don’t FTP?
Anything?

• Nope. Not a sausage.

• If I need to install a plugin I do it locally. Then commit and
   push to github.

• This then automatically grabs all files to the staging server
   (which means FTP is disabled on my server so (a little)
   more secure.




                                                                   14
Hang on. So you don’t FTP?
Anything?

• Nope. Not a sausage.

• If I need to install a plugin I do it locally. Then commit and
   push to github.

• This then automatically grabs all files to the staging server
   (which means FTP is disabled on my server so (a little)
   more secure.

• Likewise with themes.



                                                                   14
Iiiinteresting. Veeeery
interesting.
                          15
16
OK smart-arse, what about
content?




                            16
OK smart-arse, what about
content?

• Content is a little more complicated




                                         16
OK smart-arse, what about
content?

• Content is a little more complicated

• Text is stored in a database, so no ‘flat files’ as such (there
   is, kinda, but it’s complicated and not for now)




                                                                  16
OK smart-arse, what about
content?

• Content is a little more complicated

• Text is stored in a database, so no ‘flat files’ as such (there
   is, kinda, but it’s complicated and not for now)

• Can do a ‘database dump’ change references to ‘local’
   environment and replace with links to live site




                                                                  16
OK smart-arse, what about
content?

• Content is a little more complicated

• Text is stored in a database, so no ‘flat files’ as such (there
   is, kinda, but it’s complicated and not for now)

• Can do a ‘database dump’ change references to ‘local’
   environment and replace with links to live site

• Or...




                                                                  16
OK smart-arse, what about
content?

• Content is a little more complicated

• Text is stored in a database, so no ‘flat files’ as such (there
   is, kinda, but it’s complicated and not for now)

• Can do a ‘database dump’ change references to ‘local’
   environment and replace with links to live site

• Or...

• RAMP Plugin by Crowd Favorite
   http://crowdfavorite.com/wordpress/ramp/

                                                                  16
17
17
18
Holy Frack. How Much?!




                         18
Holy Frack. How Much?!
• Yeah, it’s not cheap. But it does a great job.




                                                   18
Holy Frack. How Much?!
• Yeah, it’s not cheap. But it does a great job.

• Also, it has a developer API, so all of the themes and plugins
   that I develop are ‘RAMP-enabled’ which mean that any
   user of said themes or plugins can benefit from RAMP’s
   content management




                                                                   18
Holy Frack. How Much?!
• Yeah, it’s not cheap. But it does a great job.

• Also, it has a developer API, so all of the themes and plugins
   that I develop are ‘RAMP-enabled’ which mean that any
   user of said themes or plugins can benefit from RAMP’s
   content management


• Free Alternative: DeployMint by Mark Maunder
   http://code.google.com/p/deploymint/




                                                                   18
Care to
show me an
example?
Care to
show me an
example?
This can only go well
OH GOD!
THE
CONSOLE
OH GOD!
THE
CONSOLE
• You don’t have to use
  the console, there are
  several apps you can
  use

• Tower or github for
  mac

• GIT Gui / TortoiseGIT
  for Windows
21
21
But I work
in a team?




             21
But I work
in a team?
• On some projects, so
  do I!




                         21
But I work
in a team?
• On some projects, so
  do I!

• Different people have
  their own ‘local’
  repository and work
  on different branches




                          21
But I work
in a team?
• On some projects, so
  do I!

• Different people have
  their own ‘local’
  repository and work
  on different branches

• These are then
  ‘merged’ as and when


                          21
22
What about backups?




                      22
What about backups?
• Well, because your code is all stored on GitHub, you already
  have 1 level of backup. RAMP handles media, too.




                                                                 22
What about backups?
• Well, because your code is all stored on GitHub, you already
  have 1 level of backup. RAMP handles media, too.

• For the database, I use a plugin called BackupPress (http://
  www.getbackuppress.com) - it ‘just works’ and allows you to
  restore your database back to a previous state if things go
  awry




                                                                 22
What about backups?
• Well, because your code is all stored on GitHub, you already
  have 1 level of backup. RAMP handles media, too.

• For the database, I use a plugin called BackupPress (http://
  www.getbackuppress.com) - it ‘just works’ and allows you to
  restore your database back to a previous state if things go
  awry

• Alternative: WP-DBManager (https://wordpress.org/
  extend/plugins/wp-dbmanager/)




                                                                 22
What about backups?
• Well, because your code is all stored on GitHub, you already
  have 1 level of backup. RAMP handles media, too.

• For the database, I use a plugin called BackupPress (http://
  www.getbackuppress.com) - it ‘just works’ and allows you to
  restore your database back to a previous state if things go
  awry

• Alternative: WP-DBManager (https://wordpress.org/
  extend/plugins/wp-dbmanager/)

• I also have a cron job on my server which does a dump twice
  a day.

                                                                 22
23
I’ve forgotten absolutely
everything you’ve just said




                              23
I’ve forgotten absolutely
everything you’ve just said

• Having a workflow you are both comfortable with and that
  you stick to is more important than what the workflow
  actually is




                                                            23
I’ve forgotten absolutely
everything you’ve just said

• Having a workflow you are both comfortable with and that
   you stick to is more important than what the workflow
   actually is

• Use a Version Control System; they will - after a small
   learning curve - become a God-send




                                                            23
I’ve forgotten absolutely
everything you’ve just said

• Having a workflow you are both comfortable with and that
   you stick to is more important than what the workflow
   actually is

• Use a Version Control System; they will - after a small
   learning curve - become a God-send

• Never, ever edit files on a live server. Ever. Forever, ever.




                                                                 23
I’ve forgotten absolutely
everything you’ve just said

• Having a workflow you are both comfortable with and that
   you stick to is more important than what the workflow
   actually is

• Use a Version Control System; they will - after a small
   learning curve - become a God-send

• Never, ever edit files on a live server. Ever. Forever, ever.
• Have a fallback plan




                                                                 23
I’ve forgotten absolutely
everything you’ve just said

• Having a workflow you are both comfortable with and that
   you stick to is more important than what the workflow
   actually is

• Use a Version Control System; they will - after a small
   learning curve - become a God-send

• Never, ever edit files on a live server. Ever. Forever, ever.
• Have a fallback plan
• Don’t just jump straight into something - do some reading
   about it first, understand it, then take small steps


                                                                 23
Credits
•   http://bit.ly/JDjfYd

•   http://bit.ly/L3Z3vL

•   http://bit.ly/K3NJAZ

•   http://bit.ly/L44VF3

•   http://bit.ly/JtUO25

•   http://bit.ly/JSTJz1

•   http://bit.ly/IXPLRE

•   http://bit.ly/Kt1NaX

•   http://bit.ly/J85QZK

•   http://bit.ly/L6md4t

•   http://bit.ly/LScNN4

•   http://bit.ly/JJdes2

Contenu connexe

En vedette

Aliments fruites i animals
Aliments  fruites i  animalsAliments  fruites i  animals
Aliments fruites i animalshunain25
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1janyaklumin55
 
Less oh-shit with git
Less oh-shit with gitLess oh-shit with git
Less oh-shit with gitRichard Tape
 
LARIS Property (www.LarisIndonesia.com)
LARIS Property (www.LarisIndonesia.com)LARIS Property (www.LarisIndonesia.com)
LARIS Property (www.LarisIndonesia.com)www.BerbagiBisnis.com
 
GFC - Magazine article
GFC - Magazine articleGFC - Magazine article
GFC - Magazine articleSpade Aspade
 
Payforit4 Training
Payforit4 TrainingPayforit4 Training
Payforit4 TrainingImpulsePay
 
The big bang theory !!!
The big bang theory !!!The big bang theory !!!
The big bang theory !!!429287
 
European banking presentation 20.04.2012
European banking presentation 20.04.2012European banking presentation 20.04.2012
European banking presentation 20.04.2012429287
 
Payforit 4 Seminar
Payforit 4 SeminarPayforit 4 Seminar
Payforit 4 SeminarImpulsePay
 
Task 2 writing 105
Task 2 writing 105Task 2 writing 105
Task 2 writing 105aubrey_j
 
Payforit 4 Case Study
Payforit 4 Case StudyPayforit 4 Case Study
Payforit 4 Case StudyImpulsePay
 
Tlc en ee.uu y colombia
Tlc en ee.uu y colombiaTlc en ee.uu y colombia
Tlc en ee.uu y colombiaMoises Hurtado
 
Isas _Q3 _Soft_Topic3_enterprise_application_architecture
Isas _Q3 _Soft_Topic3_enterprise_application_architectureIsas _Q3 _Soft_Topic3_enterprise_application_architecture
Isas _Q3 _Soft_Topic3_enterprise_application_architectureTuấn Anh Nguyễn
 
Vescina accountability dei confidi minori 7 aprile
Vescina accountability dei confidi minori 7 aprile Vescina accountability dei confidi minori 7 aprile
Vescina accountability dei confidi minori 7 aprile Salvatore Vescina
 

En vedette (20)

Aliments fruites i animals
Aliments  fruites i  animalsAliments  fruites i  animals
Aliments fruites i animals
 
substance abuse counselor
substance abuse counselorsubstance abuse counselor
substance abuse counselor
 
Revista PM Network
Revista PM NetworkRevista PM Network
Revista PM Network
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1
 
Less oh-shit with git
Less oh-shit with gitLess oh-shit with git
Less oh-shit with git
 
LARIS Property (www.LarisIndonesia.com)
LARIS Property (www.LarisIndonesia.com)LARIS Property (www.LarisIndonesia.com)
LARIS Property (www.LarisIndonesia.com)
 
GFC - Magazine article
GFC - Magazine articleGFC - Magazine article
GFC - Magazine article
 
Gallery Walk
Gallery WalkGallery Walk
Gallery Walk
 
Payforit4 Training
Payforit4 TrainingPayforit4 Training
Payforit4 Training
 
Prezentacja dr. Pawła Kuczyńskiego | anty-ACTA
Prezentacja dr. Pawła Kuczyńskiego | anty-ACTAPrezentacja dr. Pawła Kuczyńskiego | anty-ACTA
Prezentacja dr. Pawła Kuczyńskiego | anty-ACTA
 
LARIS Indonesia
LARIS IndonesiaLARIS Indonesia
LARIS Indonesia
 
The big bang theory !!!
The big bang theory !!!The big bang theory !!!
The big bang theory !!!
 
European banking presentation 20.04.2012
European banking presentation 20.04.2012European banking presentation 20.04.2012
European banking presentation 20.04.2012
 
Payforit 4 Seminar
Payforit 4 SeminarPayforit 4 Seminar
Payforit 4 Seminar
 
prueba
pruebaprueba
prueba
 
Task 2 writing 105
Task 2 writing 105Task 2 writing 105
Task 2 writing 105
 
Payforit 4 Case Study
Payforit 4 Case StudyPayforit 4 Case Study
Payforit 4 Case Study
 
Tlc en ee.uu y colombia
Tlc en ee.uu y colombiaTlc en ee.uu y colombia
Tlc en ee.uu y colombia
 
Isas _Q3 _Soft_Topic3_enterprise_application_architecture
Isas _Q3 _Soft_Topic3_enterprise_application_architectureIsas _Q3 _Soft_Topic3_enterprise_application_architecture
Isas _Q3 _Soft_Topic3_enterprise_application_architecture
 
Vescina accountability dei confidi minori 7 aprile
Vescina accountability dei confidi minori 7 aprile Vescina accountability dei confidi minori 7 aprile
Vescina accountability dei confidi minori 7 aprile
 

Similaire à Less 'Oh Shit' With GIT

Build a Startup with Clojure(Script)
Build a Startup with Clojure(Script)Build a Startup with Clojure(Script)
Build a Startup with Clojure(Script)Théophile Villard
 
Clean Code - 5
Clean Code - 5Clean Code - 5
Clean Code - 5Don Kim
 
Designing Your UX Career
Designing Your UX CareerDesigning Your UX Career
Designing Your UX CareerBen Sykes
 
Lecture 6 - Make money doing something you Love
Lecture 6 - Make money doing something you LoveLecture 6 - Make money doing something you Love
Lecture 6 - Make money doing something you Lovewmdmark
 
Remote Working at Spry Fox
Remote Working at Spry FoxRemote Working at Spry Fox
Remote Working at Spry FoxAndrew Fray
 
Find a Job Without Looking
Find a Job Without LookingFind a Job Without Looking
Find a Job Without LookingDavid Crandall
 
How To Be A Real Developer In Two Easy Steps!
How To Be A Real Developer In Two Easy Steps!How To Be A Real Developer In Two Easy Steps!
How To Be A Real Developer In Two Easy Steps!northofnormal
 
8 Seconds_Writing for Digital Communications.12.11
8 Seconds_Writing for Digital Communications.12.118 Seconds_Writing for Digital Communications.12.11
8 Seconds_Writing for Digital Communications.12.11Carolyn Hudson
 
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)ux singapore
 
Community and Github: 7/27/2011
Community and Github: 7/27/2011Community and Github: 7/27/2011
Community and Github: 7/27/2011Andy Lester
 
Lab time
Lab timeLab time
Lab timecrebma
 
Doing cool stuff with WordPress
Doing cool stuff with WordPressDoing cool stuff with WordPress
Doing cool stuff with WordPressPeter Baylies
 
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...BlueHat Security Conference
 
The Week: Wrong questions, Right answers
The Week:  Wrong questions, Right answersThe Week:  Wrong questions, Right answers
The Week: Wrong questions, Right answerssifter3000
 
We are all Remote Advocates
We are all Remote AdvocatesWe are all Remote Advocates
We are all Remote AdvocatesFokke Zandbergen
 
The Web is Your Church's New Front Door
The Web is Your Church's New Front DoorThe Web is Your Church's New Front Door
The Web is Your Church's New Front Doorchurchjuice
 
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017Codemotion
 

Similaire à Less 'Oh Shit' With GIT (20)

Build a Startup with Clojure(Script)
Build a Startup with Clojure(Script)Build a Startup with Clojure(Script)
Build a Startup with Clojure(Script)
 
Clean Code - 5
Clean Code - 5Clean Code - 5
Clean Code - 5
 
Designing Your UX Career
Designing Your UX CareerDesigning Your UX Career
Designing Your UX Career
 
Lecture 6 - Make money doing something you Love
Lecture 6 - Make money doing something you LoveLecture 6 - Make money doing something you Love
Lecture 6 - Make money doing something you Love
 
Remote Working at Spry Fox
Remote Working at Spry FoxRemote Working at Spry Fox
Remote Working at Spry Fox
 
Tech talk
Tech talkTech talk
Tech talk
 
Tweakers Anonymous
Tweakers AnonymousTweakers Anonymous
Tweakers Anonymous
 
Find a job without looking
Find a job without lookingFind a job without looking
Find a job without looking
 
Find a Job Without Looking
Find a Job Without LookingFind a Job Without Looking
Find a Job Without Looking
 
How To Be A Real Developer In Two Easy Steps!
How To Be A Real Developer In Two Easy Steps!How To Be A Real Developer In Two Easy Steps!
How To Be A Real Developer In Two Easy Steps!
 
8 Seconds_Writing for Digital Communications.12.11
8 Seconds_Writing for Digital Communications.12.118 Seconds_Writing for Digital Communications.12.11
8 Seconds_Writing for Digital Communications.12.11
 
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)
UXSG2014 #3 Keynote - Designing Your UX Career (Ben Sykes)
 
Community and Github: 7/27/2011
Community and Github: 7/27/2011Community and Github: 7/27/2011
Community and Github: 7/27/2011
 
Lab time
Lab timeLab time
Lab time
 
Doing cool stuff with WordPress
Doing cool stuff with WordPressDoing cool stuff with WordPress
Doing cool stuff with WordPress
 
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...
BlueHat v18 || Keynote - This is not fine - surviving cynicism and building h...
 
The Week: Wrong questions, Right answers
The Week:  Wrong questions, Right answersThe Week:  Wrong questions, Right answers
The Week: Wrong questions, Right answers
 
We are all Remote Advocates
We are all Remote AdvocatesWe are all Remote Advocates
We are all Remote Advocates
 
The Web is Your Church's New Front Door
The Web is Your Church's New Front DoorThe Web is Your Church's New Front Door
The Web is Your Church's New Front Door
 
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017
Chasing Elephants - Alberto Brandolini - Codemotion Rome 2017
 

Dernier

Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Dernier (20)

Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

Less 'Oh Shit' With GIT

  • 1. Less ‘Oh Sh*t’ With GIT How having a GIT-based workflow can make your life infinitely easier
  • 2. What with a who-now? 2
  • 3. What with a who-now? • Who the hell are you? • What the hell are you talking about? • What the hell is a ‘Workflow’ ? • What the hell is ‘GIT’? • Oh. Why the hell am I not using this thing? 2
  • 4. Who the hell are you? 3
  • 5. Who the hell are you? 3
  • 6. Who the hell are you? • Richard Tape 3
  • 7. Who the hell are you? • Richard Tape • Sticky, sello, masking, video, worm. You’re welcome 3
  • 8. Who the hell are you? • Richard Tape • Sticky, sello, masking, video, worm. You’re welcome • Working with WP professionally for >3 years. Thanks Mike! 3
  • 9. Who the hell are you? • Richard Tape • Sticky, sello, masking, video, worm. You’re welcome • Working with WP professionally for >3 years. Thanks Mike! • @RichardTape 3
  • 10. Who the hell are you? • Richard Tape • Sticky, sello, masking, video, worm. You’re welcome • Working with WP professionally for >3 years. Thanks Mike! • @RichardTape • http://rich.is/ (coming soon) but have site at http://iamfriendly.com/ 3
  • 11. 4
  • 12. 4
  • 14. !important • Here’s what I’m not saying: 4
  • 15. !important • Here’s what I’m not saying: ★ That my WorkFlow is the One True Way © 4
  • 16. !important • Here’s what I’m not saying: ★ That my WorkFlow is the One True Way © ★ That what I do is ‘right’ 4
  • 17. !important • Here’s what I’m not saying: ★ That my WorkFlow is the One True Way © ★ That what I do is ‘right’ ★ That you should copy what I do without having a basic understanding of what you’re doing 4
  • 18. !important • Here’s what I’m not saying: ★ That my WorkFlow is the One True Way © ★ That what I do is ‘right’ ★ That you should copy what I do without having a basic understanding of what you’re doing ★ Manchester City deserved to win the Premiership Title this year 4
  • 19. 5
  • 20. What the hell are you talking about, then? 5
  • 21. What the hell are you talking about, then? • What is a Workflow and why do I need one? 5
  • 22. What the hell are you talking about, then? • What is a Workflow and why do I need one? • Richard, what were you doing this time last year? 5
  • 23. What the hell are you talking about, then? • What is a Workflow and why do I need one? • Richard, what were you doing this time last year? • Haha. That’s ridiculous. You’re an idiot. What are you doing now, though? 5
  • 24. What the hell are you talking about, then? • What is a Workflow and why do I need one? • Richard, what were you doing this time last year? • Haha. That’s ridiculous. You’re an idiot. What are you doing now, though? • But I already have my way of doing things and it works great. When do you stop talking? You’re boring. 5
  • 25. What the hell are you talking about, then? • What is a Workflow and why do I need one? • Richard, what were you doing this time last year? • Haha. That’s ridiculous. You’re an idiot. What are you doing now, though? • But I already have my way of doing things and it works great. When do you stop talking? You’re boring. • OK, OK, as it’d apparently be ‘rude’ if I got up and left, you might as well tell me about this ‘GIT’ thing. ENTERTAIN ME. 5
  • 26. 6
  • 27. What is a Workflow? 6
  • 28. What is a Workflow? You’re going to crack out a dictionary definition aren’t you? You’re so predictable. 6
  • 29. What is a Workflow? You’re going to crack out a dictionary definition aren’t you? You’re so predictable. 1. The scheduling of independent jobs on a computer. 6
  • 30. What is a Workflow? You’re going to crack out a dictionary definition aren’t you? You’re so predictable. 1. The scheduling of independent jobs on a computer. 2.  The set of relationships between all the activities in a project, from start to finish. Activities are related by different types of trigger relation. Activities may be triggered by external events or by other activities. 6
  • 31. What is a Workflow? You’re going to crack out a dictionary definition aren’t you? You’re so predictable. 1. The scheduling of independent jobs on a computer. 2.  The set of relationships between all the activities in a project, from start to finish. Activities are related by different types of trigger relation. Activities may be triggered by external events or by other activities. 3. The movement of documents around an organisation for purposes including sign-off, evaluation, performing activities in a process and co-writing. 6
  • 32. 7
  • 33. And in English, please? 7
  • 34. And in English, please? How you go about your day-to-day tasks and the systems you put in place to allow you to do those tasks more easily 7
  • 35. 8
  • 36. Richard, what were you doing this time last year? 8
  • 37. Richard, what were you doing this time last year? • Work locally using a MAMP setup. 8
  • 38. Richard, what were you doing this time last year? • Work locally using a MAMP setup. • WordPress Multisite installation, each ‘project’ was a new site. 8
  • 39. Richard, what were you doing this time last year? • Work locally using a MAMP setup. • WordPress Multisite installation, each ‘project’ was a new site. • When happy with work, sFTP to live site. Cross fingers and sacrifice a goat in the hope that it wouldn’t break. 8
  • 40. Richard, what were you doing this time last year? • Work locally using a MAMP setup. • WordPress Multisite installation, each ‘project’ was a new site. • When happy with work, sFTP to live site. Cross fingers and sacrifice a goat in the hope that it wouldn’t break. • For edits: either edit file locally and re-upload or, if I was in a rush, edit the file on the live server. Yes, I’m going straight to hell. 8
  • 41. Richard, what were you doing this time last year? • Work locally using a MAMP setup. • WordPress Multisite installation, each ‘project’ was a new site. • When happy with work, sFTP to live site. Cross fingers and sacrifice a goat in the hope that it wouldn’t break. • For edits: either edit file locally and re-upload or, if I was in a rush, edit the file on the live server. Yes, I’m going straight to hell. • For database: local and live sites were entirely separate. 8
  • 42.
  • 43.
  • 44.
  • 47. Live file editing? Hahaha. HAHAHAHA. AAAAHAHAHAHAHA. You’re an idiot. (Secretly, I sometimes do this too. But don’t tell anyone)
  • 48. 11
  • 49. What are you doing now? 11
  • 50. What are you doing now? • All source files (including WP core) are version controlled in GIT - stored in local repos and on github 11
  • 51. What are you doing now? • All source files (including WP core) are version controlled in GIT - stored in local repos and on github • I make all edits locally (even though I am sysadmin on my live server, I have intentionally revoked my rights to edit files directly) 11
  • 52. What are you doing now? • All source files (including WP core) are version controlled in GIT - stored in local repos and on github • I make all edits locally (even though I am sysadmin on my live server, I have intentionally revoked my rights to edit files directly) • Commit to local git repo. Push to github. 11
  • 53. What are you doing now? • All source files (including WP core) are version controlled in GIT - stored in local repos and on github • I make all edits locally (even though I am sysadmin on my live server, I have intentionally revoked my rights to edit files directly) • Commit to local git repo. Push to github. • Post Commit hooks on github automatically pulls all edits onto staging server 11
  • 54. What are you doing now? • All source files (including WP core) are version controlled in GIT - stored in local repos and on github • I make all edits locally (even though I am sysadmin on my live server, I have intentionally revoked my rights to edit files directly) • Commit to local git repo. Push to github. • Post Commit hooks on github automatically pulls all edits onto staging server • If happy on staging, deploy changes to live 11
  • 55. 12
  • 56. GIT? Repo? Staging? Deploy? 12
  • 57. GIT? Repo? Staging? Deploy? • GIT is a VCS - a version control system (a ‘distributed’ one at that) and source code management (SCM) ★ It keeps track of all changes you make to your files ★ You can think of it like the Revisions System in WordPress 12
  • 58. GIT? Repo? Staging? Deploy? • GIT is a VCS - a version control system (a ‘distributed’ one at that) and source code management (SCM) ★ It keeps track of all changes you make to your files ★ You can think of it like the Revisions System in WordPress • Repo is short for Repository. ★ It’s sort of like a database ★ When you make changes to your files, you ‘commit’ them to your local repo ★ If you have made a mistake, you can simply ‘roll back’ to a previous state ★ Sort of like an ‘undo’ feature for all of your files 12
  • 59. GIT? Repo? Staging? Deploy? 13
  • 60. GIT? Repo? Staging? Deploy? • Staging ★ An intermediary between your local environment and the live site ★ Ideally, the staging server and the live server have identical setups ★ Means you can see exactly what your changes will look like on the live site without the panic of ‘guessing’ 13
  • 61. GIT? Repo? Staging? Deploy? • Staging ★ An intermediary between your local environment and the live site ★ Ideally, the staging server and the live server have identical setups ★ Means you can see exactly what your changes will look like on the live site without the panic of ‘guessing’ • Deploy ★ The equivalent of FTP’ing all your changes elsewhere ★ When you ‘deploy’ something you’re effectively “making it live” 13
  • 62. 14
  • 63. Hang on. So you don’t FTP? Anything? 14
  • 64. Hang on. So you don’t FTP? Anything? • Nope. Not a sausage. 14
  • 65. Hang on. So you don’t FTP? Anything? • Nope. Not a sausage. • If I need to install a plugin I do it locally. Then commit and push to github. 14
  • 66. Hang on. So you don’t FTP? Anything? • Nope. Not a sausage. • If I need to install a plugin I do it locally. Then commit and push to github. • This then automatically grabs all files to the staging server (which means FTP is disabled on my server so (a little) more secure. 14
  • 67. Hang on. So you don’t FTP? Anything? • Nope. Not a sausage. • If I need to install a plugin I do it locally. Then commit and push to github. • This then automatically grabs all files to the staging server (which means FTP is disabled on my server so (a little) more secure. • Likewise with themes. 14
  • 69. 16
  • 70. OK smart-arse, what about content? 16
  • 71. OK smart-arse, what about content? • Content is a little more complicated 16
  • 72. OK smart-arse, what about content? • Content is a little more complicated • Text is stored in a database, so no ‘flat files’ as such (there is, kinda, but it’s complicated and not for now) 16
  • 73. OK smart-arse, what about content? • Content is a little more complicated • Text is stored in a database, so no ‘flat files’ as such (there is, kinda, but it’s complicated and not for now) • Can do a ‘database dump’ change references to ‘local’ environment and replace with links to live site 16
  • 74. OK smart-arse, what about content? • Content is a little more complicated • Text is stored in a database, so no ‘flat files’ as such (there is, kinda, but it’s complicated and not for now) • Can do a ‘database dump’ change references to ‘local’ environment and replace with links to live site • Or... 16
  • 75. OK smart-arse, what about content? • Content is a little more complicated • Text is stored in a database, so no ‘flat files’ as such (there is, kinda, but it’s complicated and not for now) • Can do a ‘database dump’ change references to ‘local’ environment and replace with links to live site • Or... • RAMP Plugin by Crowd Favorite http://crowdfavorite.com/wordpress/ramp/ 16
  • 76. 17
  • 77. 17
  • 78. 18
  • 79. Holy Frack. How Much?! 18
  • 80. Holy Frack. How Much?! • Yeah, it’s not cheap. But it does a great job. 18
  • 81. Holy Frack. How Much?! • Yeah, it’s not cheap. But it does a great job. • Also, it has a developer API, so all of the themes and plugins that I develop are ‘RAMP-enabled’ which mean that any user of said themes or plugins can benefit from RAMP’s content management 18
  • 82. Holy Frack. How Much?! • Yeah, it’s not cheap. But it does a great job. • Also, it has a developer API, so all of the themes and plugins that I develop are ‘RAMP-enabled’ which mean that any user of said themes or plugins can benefit from RAMP’s content management • Free Alternative: DeployMint by Mark Maunder http://code.google.com/p/deploymint/ 18
  • 83.
  • 84.
  • 85. Care to show me an example?
  • 86. Care to show me an example? This can only go well
  • 87.
  • 88.
  • 90. OH GOD! THE CONSOLE • You don’t have to use the console, there are several apps you can use • Tower or github for mac • GIT Gui / TortoiseGIT for Windows
  • 91. 21
  • 92. 21
  • 93. But I work in a team? 21
  • 94. But I work in a team? • On some projects, so do I! 21
  • 95. But I work in a team? • On some projects, so do I! • Different people have their own ‘local’ repository and work on different branches 21
  • 96. But I work in a team? • On some projects, so do I! • Different people have their own ‘local’ repository and work on different branches • These are then ‘merged’ as and when 21
  • 97. 22
  • 99. What about backups? • Well, because your code is all stored on GitHub, you already have 1 level of backup. RAMP handles media, too. 22
  • 100. What about backups? • Well, because your code is all stored on GitHub, you already have 1 level of backup. RAMP handles media, too. • For the database, I use a plugin called BackupPress (http:// www.getbackuppress.com) - it ‘just works’ and allows you to restore your database back to a previous state if things go awry 22
  • 101. What about backups? • Well, because your code is all stored on GitHub, you already have 1 level of backup. RAMP handles media, too. • For the database, I use a plugin called BackupPress (http:// www.getbackuppress.com) - it ‘just works’ and allows you to restore your database back to a previous state if things go awry • Alternative: WP-DBManager (https://wordpress.org/ extend/plugins/wp-dbmanager/) 22
  • 102. What about backups? • Well, because your code is all stored on GitHub, you already have 1 level of backup. RAMP handles media, too. • For the database, I use a plugin called BackupPress (http:// www.getbackuppress.com) - it ‘just works’ and allows you to restore your database back to a previous state if things go awry • Alternative: WP-DBManager (https://wordpress.org/ extend/plugins/wp-dbmanager/) • I also have a cron job on my server which does a dump twice a day. 22
  • 103. 23
  • 104. I’ve forgotten absolutely everything you’ve just said 23
  • 105. I’ve forgotten absolutely everything you’ve just said • Having a workflow you are both comfortable with and that you stick to is more important than what the workflow actually is 23
  • 106. I’ve forgotten absolutely everything you’ve just said • Having a workflow you are both comfortable with and that you stick to is more important than what the workflow actually is • Use a Version Control System; they will - after a small learning curve - become a God-send 23
  • 107. I’ve forgotten absolutely everything you’ve just said • Having a workflow you are both comfortable with and that you stick to is more important than what the workflow actually is • Use a Version Control System; they will - after a small learning curve - become a God-send • Never, ever edit files on a live server. Ever. Forever, ever. 23
  • 108. I’ve forgotten absolutely everything you’ve just said • Having a workflow you are both comfortable with and that you stick to is more important than what the workflow actually is • Use a Version Control System; they will - after a small learning curve - become a God-send • Never, ever edit files on a live server. Ever. Forever, ever. • Have a fallback plan 23
  • 109. I’ve forgotten absolutely everything you’ve just said • Having a workflow you are both comfortable with and that you stick to is more important than what the workflow actually is • Use a Version Control System; they will - after a small learning curve - become a God-send • Never, ever edit files on a live server. Ever. Forever, ever. • Have a fallback plan • Don’t just jump straight into something - do some reading about it first, understand it, then take small steps 23
  • 110.
  • 111.
  • 112. Credits • http://bit.ly/JDjfYd • http://bit.ly/L3Z3vL • http://bit.ly/K3NJAZ • http://bit.ly/L44VF3 • http://bit.ly/JtUO25 • http://bit.ly/JSTJz1 • http://bit.ly/IXPLRE • http://bit.ly/Kt1NaX • http://bit.ly/J85QZK • http://bit.ly/L6md4t • http://bit.ly/LScNN4 • http://bit.ly/JJdes2

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
  62. \n
  63. \n
  64. \n
  65. \n
  66. \n
  67. \n
  68. \n
  69. \n
  70. \n
  71. \n
  72. \n
  73. \n
  74. \n
  75. \n
  76. \n
  77. \n
  78. \n
  79. \n
  80. \n
  81. \n
  82. \n
  83. \n
  84. \n
  85. \n
  86. \n
  87. \n
  88. \n
  89. \n
  90. \n
  91. \n