Skip to content

Instantly share code, notes, and snippets.

@gchaix
Created December 24, 2015 01:55
Show Gist options
  • Save gchaix/80bf2310f46cdb6d3a4d to your computer and use it in GitHub Desktop.
Save gchaix/80bf2310f46cdb6d3a4d to your computer and use it in GitHub Desktop.
Running a vagrant clone of a prod site
1. Clone your vagrant template (i.e. https://github.com/tag1consulting/puppet-centos or https://github.com/gchaix/webdev-vagrant)
2. Clone the site code to somewhere convenient
3. Link cloned site code to where the vagrant template is expecting to see code (set in Vagrantfile.local for puppet-centos, symlink to `htdocs` in the repo root for webdev-vagrant)
4. Get a database dump
a. if on Acquia cloud, install the drush alias file for the acquia account and do a `drush @sitename.testsql-dump > site.sql` in the repo root
5. `vagrant up`
6. `vagrant ssh` into the box and load the database from the sql dump: `drush sql-cli < site.sql`
7. PROFIT!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment