SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
Introduction to Drupal 7

                      Session 8.1
          Updating core, themes and modules



Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   1
Agenda
•    Backing up your system
•    Why and when to make updates
•    Updating Drupal core
•    Updating modules and themes
•    Patching




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   2
Backup
• Absolutely important: never do anything on
  your system before backing it up!
• How to backup – 2 parts:
       – Make a copy of your system files
       – Export a dump of your database




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   3
Why and when
• Why: keeping your system secure and up-to-
  date
• When:
       – On new versions of modules
       – On security updates
       – New features is introduced in the community




Drupalist: Kalin Chernev     Course by Init Lab (http://initlab.org)   4
Exporting a dump from phpmyadmin
• The most conventional way to export a
  database backup is access the phpmyadmin
• Use the export functionalities
       – Tar.gz is the best compression
       – You may want to exclude cache tables
       – Better than cpanel way of exporting data




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   5
Exporting from phpmyadmin
•    Enter the phpmyadmin control panel
•    Select the database you’d like to export
•    Use the Export tab on top
•    Keep the SQL type of export
•    Select gzipped compression level




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   6
Exporting from phpmyadmin




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   7
Backup and migrate module
• Backup and migrate is a useful Drupal module
• Advantages
       –    Easy to use with configurations
       –    No need to have access to phpmyadmin
       –    Cache tables are not dumped by default
       –    Choice of way to export the data
       –    Automatic regular backups are possible
• Be careful:
       – System performance may suffer from the automatic
         regular backups
Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   8
Using Backup and migrate module
• Administration > Configuration > System >
  Backup and Migrate




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   9
Updating Drupal core
• All files except the “sites” folder
• Sometimes the .htaccess is changed
• Sometimes the robots.txt file is changed
• Also additional PHP files are added
• You have to keep backup of your custom files
  and restore them after the update
• Run update.php script

Drupalist: Kalin Chernev        Course by Init Lab (http://initlab.org)   10
Updating Drupal core




Drupalist: Kalin Chernev        Course by Init Lab (http://initlab.org)   11
Run update.php




Drupalist: Kalin Chernev     Course by Init Lab (http://initlab.org)   12
Apply pending changes




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   13
Updating modules and themes
•    Backup initial files version locally
•    Remove old files
•    Add new files
•    Run update.php script
•    Check for errors
       – Dynamic sections using the module functionality
       – General browsing the website
• If there are errors: try cleaning the cache
• If the errors do not go away: read the forums
Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   14
Patching
• Anatomy of a patch
• When to patch: new features are added by
  community, but the module maintainer hasn’t
  introduced them in the module yet
• git or not git
• The NetBeans way for Windows
• The Linux way


Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   15
Anatomy of a patch
• A patch is a document that shows the
  differences between 2 versions of one or more
  files.




Drupalist: Kalin Chernev       Course by Init Lab (http://initlab.org)   16
Applying a patch in Windows
• To apply patches using NetBeans:
• Open the project and right-click on the file or
  folder you want to patch.
• Tools > Apply Diff Patch...
• Browse to and select the patch file you want
  to apply. > Click "Patch".



Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   17
Applying a patch in Linux
•    patch -pnum <patchfile
•    or
•    patch < /path/to/file
•    patch [options] [originalfile [patchfile]]




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   18
git
• Git is the drupal.org versioning system
• Many functionalities to facilitate the creation
  and applying of patches
• Requires more technical knowledge to use
• The best versioning system you can choose to
  use if you’re going to use a versioning system
  anyway


Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   19
Time for questions




Drupalist: Kalin Chernev       Course by Init Lab (http://initlab.org)   20
Contacts
Kalin Chernev
       – E: kalata@shtrak.eu
       – T: twitter.com/kalinchernev
       – U: http://shtrak.eu/kalata




Drupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   21

Más contenido relacionado

La actualidad más candente

Puppet camp london nov 2014 slides (1)
Puppet camp london nov 2014   slides (1)Puppet camp london nov 2014   slides (1)
Puppet camp london nov 2014 slides (1)
Puppet
 

La actualidad más candente (12)

Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in Libraries
 
Jenkins Shared Libraries Workshop
Jenkins Shared Libraries WorkshopJenkins Shared Libraries Workshop
Jenkins Shared Libraries Workshop
 
Hacking on WildFly 9
Hacking on WildFly 9Hacking on WildFly 9
Hacking on WildFly 9
 
Running Cloudbreak on Kubernetes
Running Cloudbreak on KubernetesRunning Cloudbreak on Kubernetes
Running Cloudbreak on Kubernetes
 
Infrastructure testing with Molecule and TestInfra
Infrastructure testing with Molecule and TestInfraInfrastructure testing with Molecule and TestInfra
Infrastructure testing with Molecule and TestInfra
 
Digital Fabrication Studio.02 _Information @ Aalto Media Factory
Digital Fabrication Studio.02 _Information @ Aalto Media FactoryDigital Fabrication Studio.02 _Information @ Aalto Media Factory
Digital Fabrication Studio.02 _Information @ Aalto Media Factory
 
Past, Present, and Future of Apache Storm
Past, Present, and Future of Apache StormPast, Present, and Future of Apache Storm
Past, Present, and Future of Apache Storm
 
ONOS System Test - ONS2016
ONOS System Test - ONS2016ONOS System Test - ONS2016
ONOS System Test - ONS2016
 
Puppet camp london nov 2014 slides (1)
Puppet camp london nov 2014   slides (1)Puppet camp london nov 2014   slides (1)
Puppet camp london nov 2014 slides (1)
 
Exploring Java Heap Dumps (Oracle Code One 2018)
Exploring Java Heap Dumps (Oracle Code One 2018)Exploring Java Heap Dumps (Oracle Code One 2018)
Exploring Java Heap Dumps (Oracle Code One 2018)
 
Workshop: PowerShell for Penetration Testers
Workshop: PowerShell for Penetration TestersWorkshop: PowerShell for Penetration Testers
Workshop: PowerShell for Penetration Testers
 
"Esup CAS Packaging" : Deploy and customize easily a CAS4 server
"Esup CAS Packaging" : Deploy and customize easily a CAS4 server"Esup CAS Packaging" : Deploy and customize easily a CAS4 server
"Esup CAS Packaging" : Deploy and customize easily a CAS4 server
 

Similar a Introduction to Drupal 7 - Updating core, themes and modules. applying patches

Similar a Introduction to Drupal 7 - Updating core, themes and modules. applying patches (20)

Introduction to Drupal 7 - Getting Drupal up and running
Introduction to Drupal 7 - Getting Drupal up and runningIntroduction to Drupal 7 - Getting Drupal up and running
Introduction to Drupal 7 - Getting Drupal up and running
 
Introduction to Drupal 7 - Content types and fields
Introduction to Drupal 7 - Content types and fieldsIntroduction to Drupal 7 - Content types and fields
Introduction to Drupal 7 - Content types and fields
 
Introduction to Drupal 7 - Basic Functionalities and Content management
Introduction to Drupal 7 - Basic Functionalities and Content managementIntroduction to Drupal 7 - Basic Functionalities and Content management
Introduction to Drupal 7 - Basic Functionalities and Content management
 
Introduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsIntroduction to Drupal 7 - Panels
Introduction to Drupal 7 - Panels
 
Introduction to Drupal 7 Themes and design
Introduction to Drupal 7 Themes and designIntroduction to Drupal 7 Themes and design
Introduction to Drupal 7 Themes and design
 
Introduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contextsIntroduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contexts
 
Introduction to Drupal 7 News section and home page block with views
Introduction to Drupal 7  News section and home page block with viewsIntroduction to Drupal 7  News section and home page block with views
Introduction to Drupal 7 News section and home page block with views
 
Introduction to Drupal 7 Users and roles management
Introduction to Drupal 7 Users and roles managementIntroduction to Drupal 7 Users and roles management
Introduction to Drupal 7 Users and roles management
 
Getting started with Octopus Deploy
Getting started with Octopus DeployGetting started with Octopus Deploy
Getting started with Octopus Deploy
 
Test
TestTest
Test
 
2017 jenkins world
2017 jenkins world2017 jenkins world
2017 jenkins world
 
Cypress report
Cypress reportCypress report
Cypress report
 
Azphp phpunit-jenkins
Azphp phpunit-jenkinsAzphp phpunit-jenkins
Azphp phpunit-jenkins
 
Unix tc
Unix tcUnix tc
Unix tc
 
Introduction to Drupal 7 - Installing and configuring WYSIWYG editors in Drupal
Introduction to Drupal 7 - Installing and configuring WYSIWYG editors in DrupalIntroduction to Drupal 7 - Installing and configuring WYSIWYG editors in Drupal
Introduction to Drupal 7 - Installing and configuring WYSIWYG editors in Drupal
 
Drupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDrupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 version
 
Leonid Vasilyev "Building, deploying and running production code at Dropbox"
Leonid Vasilyev  "Building, deploying and running production code at Dropbox"Leonid Vasilyev  "Building, deploying and running production code at Dropbox"
Leonid Vasilyev "Building, deploying and running production code at Dropbox"
 
automatic_updates.pptx
automatic_updates.pptxautomatic_updates.pptx
automatic_updates.pptx
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
Guider: An Integrated Runtime Performance Analyzer on AGL
Guider: An Integrated Runtime Performance Analyzer on AGLGuider: An Integrated Runtime Performance Analyzer on AGL
Guider: An Integrated Runtime Performance Analyzer on AGL
 

Más de Kalin Chernev

Drupal course-plovdiv-week1-day-1
Drupal course-plovdiv-week1-day-1Drupal course-plovdiv-week1-day-1
Drupal course-plovdiv-week1-day-1
Kalin Chernev
 
Курс по Drupal - лекция 3
Курс по Drupal - лекция 3Курс по Drupal - лекция 3
Курс по Drupal - лекция 3
Kalin Chernev
 

Más de Kalin Chernev (20)

Style guides in drupal development workflows
Style guides in drupal development workflowsStyle guides in drupal development workflows
Style guides in drupal development workflows
 
RESTful with Drupal - in-s and out-s
RESTful with Drupal - in-s and out-sRESTful with Drupal - in-s and out-s
RESTful with Drupal - in-s and out-s
 
Trainings and education at hackerspaces
Trainings and education at hackerspacesTrainings and education at hackerspaces
Trainings and education at hackerspaces
 
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Introduction to Frontend Development - Session 2 - CSS FundamentalsIntroduction to Frontend Development - Session 2 - CSS Fundamentals
Introduction to Frontend Development - Session 2 - CSS Fundamentals
 
Introduction to Frontend Development - Session 1 - HTML Fundamentals
Introduction to Frontend Development - Session 1 - HTML FundamentalsIntroduction to Frontend Development - Session 1 - HTML Fundamentals
Introduction to Frontend Development - Session 1 - HTML Fundamentals
 
SEO Fundamentals Outline Lecture 2
SEO Fundamentals Outline Lecture 2SEO Fundamentals Outline Lecture 2
SEO Fundamentals Outline Lecture 2
 
Search Engine Optimization Fundamentals
Search Engine Optimization FundamentalsSearch Engine Optimization Fundamentals
Search Engine Optimization Fundamentals
 
Hackerspaces in Bulgaria Lecture VarnaConf 2012
Hackerspaces in Bulgaria Lecture VarnaConf 2012Hackerspaces in Bulgaria Lecture VarnaConf 2012
Hackerspaces in Bulgaria Lecture VarnaConf 2012
 
Introduction to Drupal 7 - SEO
Introduction to Drupal 7 - SEOIntroduction to Drupal 7 - SEO
Introduction to Drupal 7 - SEO
 
Introduction to Drupal 7 - Homework - webforms on webforms
Introduction to Drupal 7 - Homework - webforms on webformsIntroduction to Drupal 7 - Homework - webforms on webforms
Introduction to Drupal 7 - Homework - webforms on webforms
 
Introduction to Drupal 7 - Webforms
Introduction to Drupal 7 - WebformsIntroduction to Drupal 7 - Webforms
Introduction to Drupal 7 - Webforms
 
Introduction to Drupal 7 - Homework on making latest news slideshow block
Introduction to Drupal 7 - Homework on making latest news slideshow blockIntroduction to Drupal 7 - Homework on making latest news slideshow block
Introduction to Drupal 7 - Homework on making latest news slideshow block
 
Introduction to Drupal 7 - Making a slideshow with Views 3
Introduction to Drupal 7 - Making a slideshow with Views 3Introduction to Drupal 7 - Making a slideshow with Views 3
Introduction to Drupal 7 - Making a slideshow with Views 3
 
Introduction to Drupal 7 - Homework - making team section
Introduction to Drupal 7 - Homework - making team sectionIntroduction to Drupal 7 - Homework - making team section
Introduction to Drupal 7 - Homework - making team section
 
Introduction to Drupal 7 - Image Styles
Introduction to Drupal 7 - Image StylesIntroduction to Drupal 7 - Image Styles
Introduction to Drupal 7 - Image Styles
 
Introduction to Drupal 7 - Taxonomy Categorization - Homework included
Introduction to Drupal 7 - Taxonomy Categorization - Homework includedIntroduction to Drupal 7 - Taxonomy Categorization - Homework included
Introduction to Drupal 7 - Taxonomy Categorization - Homework included
 
Business education
Business educationBusiness education
Business education
 
Drupal course-plovdiv-week1-day-1
Drupal course-plovdiv-week1-day-1Drupal course-plovdiv-week1-day-1
Drupal course-plovdiv-week1-day-1
 
Drupal-курс-лекция-6
Drupal-курс-лекция-6Drupal-курс-лекция-6
Drupal-курс-лекция-6
 
Курс по Drupal - лекция 3
Курс по Drupal - лекция 3Курс по Drupal - лекция 3
Курс по Drupal - лекция 3
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Introduction to Drupal 7 - Updating core, themes and modules. applying patches

  • 1. Introduction to Drupal 7 Session 8.1 Updating core, themes and modules Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 1
  • 2. Agenda • Backing up your system • Why and when to make updates • Updating Drupal core • Updating modules and themes • Patching Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 2
  • 3. Backup • Absolutely important: never do anything on your system before backing it up! • How to backup – 2 parts: – Make a copy of your system files – Export a dump of your database Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3
  • 4. Why and when • Why: keeping your system secure and up-to- date • When: – On new versions of modules – On security updates – New features is introduced in the community Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4
  • 5. Exporting a dump from phpmyadmin • The most conventional way to export a database backup is access the phpmyadmin • Use the export functionalities – Tar.gz is the best compression – You may want to exclude cache tables – Better than cpanel way of exporting data Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5
  • 6. Exporting from phpmyadmin • Enter the phpmyadmin control panel • Select the database you’d like to export • Use the Export tab on top • Keep the SQL type of export • Select gzipped compression level Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6
  • 7. Exporting from phpmyadmin Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7
  • 8. Backup and migrate module • Backup and migrate is a useful Drupal module • Advantages – Easy to use with configurations – No need to have access to phpmyadmin – Cache tables are not dumped by default – Choice of way to export the data – Automatic regular backups are possible • Be careful: – System performance may suffer from the automatic regular backups Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8
  • 9. Using Backup and migrate module • Administration > Configuration > System > Backup and Migrate Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
  • 10. Updating Drupal core • All files except the “sites” folder • Sometimes the .htaccess is changed • Sometimes the robots.txt file is changed • Also additional PHP files are added • You have to keep backup of your custom files and restore them after the update • Run update.php script Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10
  • 11. Updating Drupal core Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 11
  • 12. Run update.php Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 12
  • 13. Apply pending changes Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 13
  • 14. Updating modules and themes • Backup initial files version locally • Remove old files • Add new files • Run update.php script • Check for errors – Dynamic sections using the module functionality – General browsing the website • If there are errors: try cleaning the cache • If the errors do not go away: read the forums Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 14
  • 15. Patching • Anatomy of a patch • When to patch: new features are added by community, but the module maintainer hasn’t introduced them in the module yet • git or not git • The NetBeans way for Windows • The Linux way Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 15
  • 16. Anatomy of a patch • A patch is a document that shows the differences between 2 versions of one or more files. Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 16
  • 17. Applying a patch in Windows • To apply patches using NetBeans: • Open the project and right-click on the file or folder you want to patch. • Tools > Apply Diff Patch... • Browse to and select the patch file you want to apply. > Click "Patch". Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 17
  • 18. Applying a patch in Linux • patch -pnum <patchfile • or • patch < /path/to/file • patch [options] [originalfile [patchfile]] Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 18
  • 19. git • Git is the drupal.org versioning system • Many functionalities to facilitate the creation and applying of patches • Requires more technical knowledge to use • The best versioning system you can choose to use if you’re going to use a versioning system anyway Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 19
  • 20. Time for questions Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 20
  • 21. Contacts Kalin Chernev – E: kalata@shtrak.eu – T: twitter.com/kalinchernev – U: http://shtrak.eu/kalata Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 21