Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing in a local environment

Developing in a local environment

This is a talk given at the Raleigh WordPress Meetup that goes over the basics of developing in a local environment geared specifically toward WordPress Developers.

Allen Moore

February 18, 2014
Tweet

More Decks by Allen Moore

Other Decks in Programming

Transcript

  1. * Building with WordPress since 2005 * Web Designer at

    NC State University Department of Electrical and Computer Engineering * Continuing Education Instructor at Wake Technical Community College * 8 years of Contract and Freelance Work prior to NC State ## About me
  2. 1. What is local development? 2. Installing tools for local

    development 3. Configuration of tools 4. Installing WordPress in a local environment 5. Additional thoughts and tools ## Outline
  3. * Local environment = your computer * Outside of the

    production environment ### What is local development?
  4. * Internet connection not required * Network failures * Internet

    outages ### Advantages of local development?
  5. * Internet connection not required * Network failures * Internet

    outages * Other possible headaches ### Advantages of local development?
  6. * Internet connection not required * Network failures * Internet

    outages * Other possible headaches * Develop from anywhere ### Advantages of local development?
  7. * Internet connection not required * Network failures * Internet

    outages * Other possible headaches * Develop from anywhere * Testing, testing, testing ### Advantages of local development?
  8. * Internet connection not required * Network failures * Internet

    outages * Other possible headaches * Develop from anywhere * Testing, testing, testing * Upload, test, fix, REPEAT ### Advantages of local development?
  9. * MAMP * Windows: WAMP, AMPPS, XAMPP * SQL pro

    * Windows: Heidi SQL, PHPMyAdmin #### Installing tools for local development
  10. * Proper configuration of your development tools will leave you

    with less headaches ##### Configuration of tools
  11. * Open Terminal and enter the following command sudo pico

    /etc/apache2/httpd.conf ##### MAMP Configuration
  12. * Copy contents of WordPress to your preferred directory ######

    Installing WordPress in a local environment
  13. * Create a new database in SQL Pro ###### Installing

    WordPress in a local environment
  14. * Navigate to your local install and complete the WordPress

    setup ###### Installing WordPress in a local environment
  15. * Virtual Hosts such as: * yourdomain.dev * yourdomain.local *

    subdomain.yourdomain.dev * WordPress Multisite install * Sub-directory * Sub-domain ####### Additional thoughts and tools
  16. * Git or version control * GitHub * Bitbucket *

    Gitlab * Database Migration * WP Migrate DB (Free & Premium) * Backup Buddy (Premium) * Staging * WPStageCoach.com * WPEngine (Dev Staging Area) * Command Line Tools * WP-CLI - wp-cli.org * PHP Unit - phpunit.de ####### Additional thoughts and tools