Skip to content

Instantly share code, notes, and snippets.

@Quilted
Last active August 29, 2015 14:05
Show Gist options
  • Save Quilted/09612ff42577283427cb to your computer and use it in GitHub Desktop.
Save Quilted/09612ff42577283427cb to your computer and use it in GitHub Desktop.
Clone existing Drupal site
  1. Create a new virtual host in MAMP Pro.
  2. Create an empty database ([DATABASE_NAME]) using Sequel Pro or phpMyAdmin.
  3. In your terminal, git clone [REPO]
  4. In your browser, navigate to the new virtual host you created.
  5. In your browser, run through the regular install process as if this were a new site.
  6. In your terminal, cd www.
  7. In your terminal, once the Drupal install is complete, mysql -u root -p [DATABASE_NAME] < ../databases/default.sql
  8. In your terminal, cd www/sites/all/themes/[THEME_NAME].
  9. In your terminal, bundle install.
  10. In your terminal, bundle exec compass compile.
  11. In your terminal, drush fr [GENERAL_THEME] -y --force.
  12. In your terminal, drush cc all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment