Created
December 24, 2015 01:55
-
-
Save gchaix/80bf2310f46cdb6d3a4d to your computer and use it in GitHub Desktop.
Running a vagrant clone of a prod site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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