372 Wiki 372 Wiki

  • Home
  • Forums
  • Categories
    • Billing
    • Bookkeeping
    • Copyright & Legal
    • Clients
    • Designer Guides
    • Developer Guides
    • Getting Started
    • Troubleshooting
    • Workplace
Home / Developer Guide / Version Control

Version Control

13 views Less than a minute 0

NEVER COMMIT ON THE SERVER

 

For version control 372Digital uses Bitbucket.

  • Before a Deployment, the DEV branch is used
  • During Development the DEV branch is used alongside the STAGING branch
  • The MASTER branch is reserved for the live site

Commits Should Be reasonably small only to contain the required code for the single unit of work completed.

To create a new bit bucket repo

  1. Head over to https://bitbucket.org/dashboard/overview
  2. Click the plus icon
  3. Click ‘Repository’
  4. Enter an appropriate name, see Project File Management
  5. Check ‘This is a private repository’
  6. Click ‘Create Repository’

If changes Exist on the Server and don’t exist locally

If something in the server environment changes and there are new/ modified files you may need to test these changes locally.

This could occur due to an automatic update , or somehow the client may have update plugins or WordPress core etc.

To make certain that these changes don’t conflict with our development environment we need to do the following.

  1.  SSH into the server
  2. Create a new branch [server] if it does not exist
  3. Checkout to [server]
  4. Stage all changes to the new branch
  5. Commit Changes with commit message of ‘ Server Commit’
  6. Push Commits to Bit Bucket
  7. On your local machine fetch then pull the new branch
  8. Checkout to your Working branch DEV
  9. Merge changes, resolve conflicts and QA these to ensure everything works as expected.
    1. if these changes do not work as expect roll back, this is why we use version control.

 

 

 

 

Developer Guide

About 372-admin

View all posts by 372-admin →

Related Articles

  • WordPress Multi-Site Deplyment
  • cPanel Redirect Old to New Site using htaccess
  • JA Theme Setup Documentation
  • Website and Application Development Workflow

Article Categories

  • 9Billing
  • 3Bookkeeping
  • 2Cimara
  • 5Client
  • 11Copyright & Legal
  • 2Designer Guide
  • 18Developer Guide
  • 11Getting Started
  • 2Troubleshooting
  • 10Workplace

Most Viewed

  • Using my credit 112
  • What is WordPress? 64
  • Account overview 51
  • How do you customize the navigation? 49
  • Why can’t I download the latest theme version (zip file)? 49

Most Liked

  • Using my credit 5
  • Why can’t I download the latest theme version (zip file)? 3
  • What is WordPress? 2
  • Workplace Communication 1
  • Account overview 1

Article Categories

Billing Bookkeeping Cimara Client Copyright & Legal Designer Guide Developer Guide Getting Started Troubleshooting Workplace

Any questions

For all management related matters please refer to Ben Brillante

For any Cimara functional issues please refer to Rushabh Padalia.

For client based issued please refer to James Apoefis

© Copyright 372 Digital Pty Ltd. All rights reserved.