Skip to content

justin-peacock/vvv-sync-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vvv-sync-db

Sync Varying Vagrant Vagrants environments between machines.

How to install

  1. Follow the installation instructions on VVV.

  2. Add the following directly below if defined? VagrantPlugins::Triggers:

    config.trigger.after :up, :stdout => true do
        info "Importing databases..."
        run_remote "bash /srv/database/sync-sql.sh"
    end
    

    Look at Vagrantfile-example for an example.

  3. Copy config/homebin/vagrant_halt_custom, database/sync-sql.sh, and provision/provision-post.sh to their corresponding directories.

  4. If using Resilio Sync, add the following to .sync/IgnoreList:

    # Vagrant
    .vagrant
    .debris
    
    # Development
    node_modules
    bower_components
    
  5. vagrant up --provision

  6. Halt the 1st machine then repeat steps on 2nd machine

Process

  1. Machine 1 (with vagrant running) - run vagrant halt
  2. Machine 2 - run vagrant up - this will import the db's that are synced. (Note: If you've added a new site, make sure you run vagrant up --provision on the other machine.)

About

Sync Varying Vagrant Vagrants environments between machines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy