GithubHelp home page GithubHelp logo

sunbuild / wordpressazure Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 12.09 MB

wordpress sample for azure supporting multiple environments - local, stage, prod etc

License: Other

PHP 71.56% CSS 14.00% JavaScript 14.44% ApacheConf 0.01%

wordpressazure's Introduction

WordPress popularity has grown in the past few years and it’s more of CMS framework now and not just a blogging framework. WordPress does not scale out of the box to work with multiple environments. Lots of questions come to mind when working with a CMS/frameworks such as

  • How to break it out into different environments
  • What files can I change and wont impact framework version updates
  • How to manage configuration per environment
  • How to manage modules/plugins version updates , core library/framework version updates

Having a strong understanding of your framework solution is key to help answer the questions mentioned above. Azure Web Apps has a few features that make it easier to store configuration settings outside of your code. This is a fork of wordpress which includes sample configuration files for wordpress app to run in multiple environments on azure web apps.

Pre-requisites:

Workflow: Complete pre-requisties and have a stable version of your development website.

  • Develop your web application
  • Backup your production website
  • Merge your local development database with your production database so all the content is in sync.
  • Deploy to Staging slot(website) and Test your application
  • Deploy to production by using SWAP feature of deployment slots . Preview changes in settings of your web app configuration as shown in the Azure portal before executing SWAP operation

Repeat this process during every deployment . **At no point does a team member make changes directly to the Staging or Production environments.**Note that new deployment only occurs in wordpress when

  • Push a code fix
  • Delete/add new plugins
  • Update WordPress core
  • Upate your theme

When working with teams involving more than one developer, I recommend using Github to create multiple branches and set up continuous deployment to your development and staging code websites can help provide better source code control to roll back/debug/resolve issues.

wordpressazure's People

Contributors

brown-hub avatar

Stargazers

John David avatar

Watchers

James Cloos avatar Sunitha Muthukrishna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.