SlideShare a Scribd company logo
1 of 29
Mikkel W. Breum
  wpKitchen.com
Versionering (git)
   hvad får man ud af det
     Kan det betale sig
         Deployment
hvorfor ikke bare (manuel) FTP
 SASS/SCSS/LESS <-> CSS
      hvad og hvorfor
 men hvad så med HeadWay
         Boilerplates
standardiserede arbejdsgange
           kvalitet
          leverage
            PaaS
hvad er PaaS og hvilke fordele
       for hjemmesider
   pris / kompliceringsgrad
Udgangspunkt


  Webhost




      sFTP


Lokale filer
Forbedret udgangspunkt


      Webhost




            sFTP


   Lokale filer
   under git kontrol
‘Nye’ muligheder
Historik / Versionering
                          Tomater
                          Agurk
                          Salat
  Tilføjet tun            Tun



                          Tomater

  Rettet tastefejl        Agurk
                          Salat



                          Timater
  Tilføjet salat          Agurk
                          Salat




  Oprettet indkøbsliste   Timater
                          Agurk
‘Nye’ muligheder
                    Forgrening
Tomater   FORK
Agurk
Salat
                  ORIG                           Tomater
Kylling
                                                 Agurk
                                                 Salat
                         Tilføjet tun            Tun
Tomater
Agurk
Salat
                                                 Tomater

                         Rettet tastefejl        Agurk
                                                 Salat



                                                 Timater
                         Tilføjet salat          Agurk
                                                 Salat




                         Oprettet indkøbsliste   Timater
                                                 Agurk
‘Nye’ muligheder
               Flere udviklere


online repo      online repo   online repo   online repo
public orig      public fork   public fork   public fork




lokal repo        lokal repo    lokal repo    lokal repo
  privat           privat        privat        privat

Koordinator       udvikler 1    udvikler 2    udvikler 3
WordPress 2003 - 2010


    http://vimeo.com/8933205
Værktøjer



redigering   scss   localhost   database     git
                     import      import   tracking
                     export      export deployment
                     kloning
‘Nye’ muligheder
                                git Deployment


                    Webhost    auto deploy
                                 (sFTP)                       PaaS


                                      git-aaS



   Webhost




          sFTP                                  git repo
                                             online / lokal
Lokale filer
under git kontrol
WordPress Anatomy
Maskinen                     Run time DATA

WP Core                           Databasen
 Theme                            wp-uploads
Plugins




           to git or not to git
SASS/SCSS/LESS <-> CSS
   CSS Preprocessing

              Variabler
            opdater et sted

            Beregniger
            Gør ting relative

              Nesting
     undgå gentagelser selectors og
              properties

               Mixins
      genbrug variable css blokke

       Nedarv fra selector
SCSS Eksempel



nt-navigation {   border-color: $blue;   color:    darken($blue,
                                  .content-navigation
                                  { border-color: #3bbfce;
                                  color: #2b9eab;}




              scss                           css
HeadWay
       my way

      nulstillet design
       og bruger det ikke

         prototype
     jump start støbeform

      SCSS template
baseret på WP + HeadWay markup
      med grid size variabler

[Kombineret med Views]
  for kontrol over content
           markup
deploy til traditionel host
   via Beanstalk hands-on

               unoeuro



opsæt domæne                        opsæt repository
                                    opsæt depl. environment

                    beanstalk



                                            opsæt lokalt site
                                            tilføj git lokalt
                      localhost
                    DesktopServer           foretag ændringer
0. Hav en tjekliste (og hold den opdateret)
1. staging site opsæt nyt subdomæne
2. Opsæt bs repo med deployment environment
3. Klon proto via DesktopServer (fixer serialiseret data)
4. ‘Localize’ / klargør klon (næste tjeckliste)
5. Tower: add repo, add remote - initial commit - initial push
6. DesktopServer: eksporter og importer på livesite
7. SCSS via codekit - commit - edit - commit
8. Push til Beanstalk

a:1:{s:7:"siteurl";s:16:"http://proto.dev";}
Change Table Prefixchange in wp-configchange in database
(use Seequel Pro) - Rename all tables - Rename key names in
user_meta - Rename key name in optionsLocalize Child
ThemeRename child theme folderChange theme name in style.css
and in scss/style.scssRename plugin templates filesChange names
and descriptions of plugin templatesLocalize Child Theme
SettingsSet the Site name, date format and timezone in General
SettingsActivate the renamed child themeSetup the Menu Position
deploy til cloud hands-on

               unoeuro



opsæt domæne                        opsæt repository
                                    opsæt depl. environment

                    beanstalk



                                            opsæt lokalt site
                                            tilføj git lokalt
                      localhost
                    DesktopServer           foretag ændringer
PaaS



      Hvad er PaaS
         Fordele
Er det for hjemmesider
       Udbydere
           Pris
   Er det kompliceret
       Hands-on
Hvad er PaaS



              Software aaS
  podio - runtastic - dit WordPress site



             Platform aaS
heruko - pagodabox - AppFog - fortrabbit



        Infrastructure aaS
   Amazon Web Services - Softlayer
PaaS fremfor webhost

fordele                 ulemper
Dynamisk skalerbarhed   Setup omkring uploads
Indsigt                 Man skal lære noget nyt
Øjeblikkelig setup      Pris
Kontrol over            Jeres erfaringer?
environment
Git deployment
Resistent hosting
Pris
Jeres erfaringer?
udbydere



fortrabbit AWS
pagodabox softlayer
AppFog optional
atlassian.com/git/
atlassian.com/git/
My HeadWay plugins


    BG Covers

 Full Width Header

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Word Camp 2013

  • 1. Mikkel W. Breum wpKitchen.com
  • 2. Versionering (git) hvad får man ud af det Kan det betale sig Deployment hvorfor ikke bare (manuel) FTP SASS/SCSS/LESS <-> CSS hvad og hvorfor men hvad så med HeadWay Boilerplates standardiserede arbejdsgange kvalitet leverage PaaS hvad er PaaS og hvilke fordele for hjemmesider pris / kompliceringsgrad
  • 3. Udgangspunkt Webhost sFTP Lokale filer
  • 4. Forbedret udgangspunkt Webhost sFTP Lokale filer under git kontrol
  • 5. ‘Nye’ muligheder Historik / Versionering Tomater Agurk Salat Tilføjet tun Tun Tomater Rettet tastefejl Agurk Salat Timater Tilføjet salat Agurk Salat Oprettet indkøbsliste Timater Agurk
  • 6. ‘Nye’ muligheder Forgrening Tomater FORK Agurk Salat ORIG Tomater Kylling Agurk Salat Tilføjet tun Tun Tomater Agurk Salat Tomater Rettet tastefejl Agurk Salat Timater Tilføjet salat Agurk Salat Oprettet indkøbsliste Timater Agurk
  • 7. ‘Nye’ muligheder Flere udviklere online repo online repo online repo online repo public orig public fork public fork public fork lokal repo lokal repo lokal repo lokal repo privat privat privat privat Koordinator udvikler 1 udvikler 2 udvikler 3
  • 8.
  • 9.
  • 10. WordPress 2003 - 2010 http://vimeo.com/8933205
  • 11. Værktøjer redigering scss localhost database git import import tracking export export deployment kloning
  • 12. ‘Nye’ muligheder git Deployment Webhost auto deploy (sFTP) PaaS git-aaS Webhost sFTP git repo online / lokal Lokale filer under git kontrol
  • 13. WordPress Anatomy Maskinen Run time DATA WP Core Databasen Theme wp-uploads Plugins to git or not to git
  • 14. SASS/SCSS/LESS <-> CSS CSS Preprocessing Variabler opdater et sted Beregniger Gør ting relative Nesting undgå gentagelser selectors og properties Mixins genbrug variable css blokke Nedarv fra selector
  • 15. SCSS Eksempel nt-navigation { border-color: $blue; color: darken($blue, .content-navigation { border-color: #3bbfce; color: #2b9eab;} scss css
  • 16. HeadWay my way nulstillet design og bruger det ikke prototype jump start støbeform SCSS template baseret på WP + HeadWay markup med grid size variabler [Kombineret med Views] for kontrol over content markup
  • 17. deploy til traditionel host via Beanstalk hands-on unoeuro opsæt domæne opsæt repository opsæt depl. environment beanstalk opsæt lokalt site tilføj git lokalt localhost DesktopServer foretag ændringer
  • 18. 0. Hav en tjekliste (og hold den opdateret) 1. staging site opsæt nyt subdomæne 2. Opsæt bs repo med deployment environment 3. Klon proto via DesktopServer (fixer serialiseret data) 4. ‘Localize’ / klargør klon (næste tjeckliste) 5. Tower: add repo, add remote - initial commit - initial push 6. DesktopServer: eksporter og importer på livesite 7. SCSS via codekit - commit - edit - commit 8. Push til Beanstalk a:1:{s:7:"siteurl";s:16:"http://proto.dev";}
  • 19. Change Table Prefixchange in wp-configchange in database (use Seequel Pro) - Rename all tables - Rename key names in user_meta - Rename key name in optionsLocalize Child ThemeRename child theme folderChange theme name in style.css and in scss/style.scssRename plugin templates filesChange names and descriptions of plugin templatesLocalize Child Theme SettingsSet the Site name, date format and timezone in General SettingsActivate the renamed child themeSetup the Menu Position
  • 20. deploy til cloud hands-on unoeuro opsæt domæne opsæt repository opsæt depl. environment beanstalk opsæt lokalt site tilføj git lokalt localhost DesktopServer foretag ændringer
  • 21. PaaS Hvad er PaaS Fordele Er det for hjemmesider Udbydere Pris Er det kompliceret Hands-on
  • 22. Hvad er PaaS Software aaS podio - runtastic - dit WordPress site Platform aaS heruko - pagodabox - AppFog - fortrabbit Infrastructure aaS Amazon Web Services - Softlayer
  • 23. PaaS fremfor webhost fordele ulemper Dynamisk skalerbarhed Setup omkring uploads Indsigt Man skal lære noget nyt Øjeblikkelig setup Pris Kontrol over Jeres erfaringer? environment Git deployment Resistent hosting Pris Jeres erfaringer?
  • 25.
  • 26.
  • 27.
  • 29. My HeadWay plugins BG Covers Full Width Header

Editor's Notes

  1. overblik, ikke for teknisk kom i gang, prøv det af (live hands on) kontakt mig senere for hjælp
  2. Udgangspunkt: one man / small team Kan det betale sig
  3. evt. sikkerhed: backup, rediger, test, genskab backup..
  4. tilføj git usynlig (se med terminal, slet for helt at rydde .git) .git syner ikke af meget, men åbner en verden af muligheder. versionering - deployment - team
  5. detaljeret genskabbar historik (commit ofte og giv fornuftig beskrivelse)
  6. jon og lisa
  7. forklar graf next: Visualisering af versionering, forgrening (tags) og teamwork (baseret på subversion)
  8. hvert blink svarer til et commit
  9. hvert commit kan inspiceres
  10. Med tilføjet git kan man forenkle deployment og gøre den mere robust git-aaS: github, bitbucket, beanstalk, kiln, stash PaaS: AppFog, pagodabox, fortrabbit, heruko
  11. Inden vi smakker deployment - forskel på komponenter Hvad skal under version kontrol og hvorfor Men tag altid backup af databasen!
  12. Syntactically Awesome Sassy Leaner
  13. Syntactically Awesome Sassy Leaner
  14. 0. Hav en tjekliste (og hold den opdateret) 1. staging site opsæt nyt subdomæne 2. Opsæt bs repo med deployment environment 3. Klon proto via DesktopServer 4. ‘Localize’ / klargør klon (egen tjeckliste) 5. Tower: add repo, add remote - initial commit - initial push 6. DesktopServer: eksporter og importer på livesite 7. SCSS via codekit - commit - edit - commit 8. Push til Beanstalk
  15. 1. unoeuro setup new subdomain 2. opsæt bs repo med deployment environment 3. klon proto via DesktopServer 4. Tower: add repo, add remote - initial commit - initial push 5. DesktopServer: eksporter og importer på livesite 6. SCSS via codekit - commit - edit - commit 7. Push til Beanstalk
  16. Udgangspunkt: one man / small team DVCS (git - mercurial)
  17. PaaS og relaterede begreber XaaS
  18. forskellige deployment metoder, tjek det forskellige prisstrukturer
  19. indstillingsmuligheder indsigt pris
  20. pris hvad man får ruby baseret deploy