Skip to content

Instantly share code, notes, and snippets.

@bdone
Last active August 29, 2015 14:22
Show Gist options
  • Save bdone/8c6e2048436060925fa9 to your computer and use it in GitHub Desktop.
Save bdone/8c6e2048436060925fa9 to your computer and use it in GitHub Desktop.
# Remove existing database
drush sql-drop -y
# Remove existing install
sudo rm -rf sites/default
# Restore the sites/default/default.settings.php file
sudo git checkout -- sites/default
# Temporarily make the sites/default writable by anyone
sudo chmod -R 777 sites/default
# Ensure the owner is the current user, not root user
sudo chown -R `whoami` sites/default
# Now that we own it and can write, change the permissions back to how drupal expects them
sudo git checkout -- sites/default
# But still ensure that we own the folder
sudo chown -R `whoami` sites/default
# install d8
drush si --site-name="d8.localhost" --account-mail="me@example.com" --site-mail="me@example.com" --account-pass="password" --db-url=mysql://root:@127.0.0.1/d8 -y
# Remove devel
# sudo rm -rf modules/devel
# Install and uninstall common modules
# drush dl devel
# drush en devel devel_generate -y
drush en simpletest -y
drush en migrate, migrate_drupal -y
drush uli
# testing d6 -> d8 everything
drush en action -y
drush en aggregator -y
drush en book -y
# drush en cck_field_revision
# drush en cck_field_values
# drush en file
drush en forum -y
drush en locale -y
# drush en menu
# drush en menu_links
# drush en menu_settings
# drush en node
# drush en node_revision
# drush en node_settings
# drush en node_setting_promote
# drush en node_setting_status
# drush en node_setting_sticky
# drush en node_type
# drush en profile_values
# drush en search_page
# drush en search_settings
# drush en simpletest_settings
# drush en statistics_settings
# drush en syslog_settings
# drush en system_cron
# drush en system_file
# drush en system_filter
# drush en system_image
# drush en system_image_gd
# drush en system_logging
# drush en system_maintenance
# drush en system_performance
# drush en system_rss
# drush en system_site
# drush en taxonomy_settings
# drush en taxonomy_term
# drush en taxonomy_vocabulary
# drush en term_node
# drush en term_node_revision
# drush en text_settings
# drush en update_settings
# drush en upload
# drush en upload_entity_display
# drush en upload_entity_form_display
# drush en upload_field
# drush en upload_field_instance
# drush en url_alias
# drush en user
# drush en user_contact_settings
# drush en user_mail
# drush en user_picture_entity_display
# drush en user_picture_entity_form_display
# drush en user_picture_field
# drush en user_picture_field_instance
# drush en user_picture_file
# drush en user_profile_entity_display
# drush en user_profile_entity_form_display
# drush en user_profile_field
# drush en user_profile_field_instance
# drush en user_role
# drush en user_settings
# drush en view_modes
# drush en vocabulary_entity_display
# drush en vocabulary_entity_form_display
# drush en vocabulary_field
# drush en vocabulary_field_instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment