From Local to Staging to Live Using Version Control & Deployment

From Local to Staging to Live Using Version Control & Deployment

How to setup a (WordPress) website development environment to build sites locally, deploying them to a staging server first before pushing them live.

31af50af29856a3e6734bdae0a0d68cf?s=128

Mark Wilkinson

July 13, 2014
Tweet

Transcript

  1. 1.

    FROM LOCAL TO STAGING TO LIVE Using Version Control &

    Deployment Tools Mark Wilkinson | @wpmark
  2. 4.
  3. 5.

    WE WILL COVER •  The  Problem   •  Local  Development

     Setup   •  Version  Control   •  Staging  /  Production  Site  
  4. 6.

    WE WILL COVER •  The  Problem   •  Local  Development

     Setup   •  Version  Control   •  Staging  /  Production  Site   •  Deployment  
  5. 7.
  6. 10.
  7. 11.
  8. 12.
  9. 13.
  10. 14.
  11. 15.
  12. 16.
  13. 17.

    Insanity: doing the same thing over and over again and

    expecting different results Albert Einstein “
  14. 23.
  15. 30.
  16. 33.

    http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/ if ( file_exists( dirname( __FILE__ ) . '/local- config.php'

    ) ) { include( dirname( __FILE__ ) . '/local-config.php' ); define( 'WP_LOCAL_DEV', true ); } else { // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ }
  17. 35.
  18. 39.
  19. 45.

    DEVELOP LOCALLY UNDER VERSION CONTROL USE DEPLOYMENT NOT FTP DEPLOY

    TO STAGING FIRST DEPLOY TO PRODUCTION DATABASE NOT THAT IMPORTANT