1. copy Live code to dev-*.mixgrub.in sites ============================================================ # If dev-*.mixgrub.in folders are already exist in server remove them using following Command for d in dev-*.mixgrub.in; do rm -r -- "$d" "dev-$d"; done # Continue to copy fresh folders for d in *.mixgrub.in; do cp -r -- "$d" "dev-$d"; done 2. copy "mixgrub" DB to dev-mixgrub DB ( Structure and Data) ============================================================ # If db `dev-mixgrub` is already exists, drop it! # Navigate to phpmyadmin > mixgrub > Operations > Copy database to: # check `Structure and Data` , `CREATE DATABASE before copying`, `Add AUTO_INCREMENT value` # Hit `Go` 3. create fresh dev-* branches that follows staging from remote ============================================================= # Example is given for `dev-admin.mixgrub.in`. Do the same for api, kitchen. # Navigate to var/www/dev-admin.mixgrub.in/pubic_html/ ## remove if dev-admin branch already exists :: git branch -d dev-admin # Create `dev-admin` branch that follows origin/staging git checkout -b dev-admin origin/staging