Skip to content

Instantly share code, notes, and snippets.

@ravyg
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravyg/13624fe99dd147e66ff4 to your computer and use it in GitHub Desktop.
Save ravyg/13624fe99dd147e66ff4 to your computer and use it in GitHub Desktop.
Geek Lyrics!
VARIABLE SET:
drush vset --yes file_private_path <path-to-private-files> | drush vset --yes file_temporary_path <path-to-temporary-file> |
NOT NEEDED ADMIN AND NEEDED ADMIN MENU
drush dis admin -y | drush en admin_menu diff field_ui -y
DRUSH KICKSTART
drush dl [drupal-version]
drush si --db-url=mysql://[dbusername]:[dbpassword]@localhost/[dbname]
drush upwd admin --password=[MyEasyDevPassword]
SET MULTILINGUAL SITE
drush en i18n l10n_update -y
DB-DUMP BY DRUSH
drush sql-dump --result-file=/path/wheretosave/filename --gzip
DRUSH CLEAN URLS SET
drush vset clean_url -y <val>
<val> = 0,1
DRUSH ERROR LEVEL SET
drush vset -y error_level <value>
values:
0: none
1: errors and warnings
2: all
RUN SQL USING DRUSH
drush sql-query --db-prefix "UPDATE {system} SET schema_version=<version> WHERE name='cdm_dataportal' and type='module';"
<version>: the schema version to reset to, e.g.: 7003
DRUSH THEME
- Status of the Site's Themes
drush status theme
- List Themes
drush pm-list --type=theme
- List Enabled Themes
drush pm-list --type=theme --status=enabled
- Set the Default Theme (to mytheme)
drush vset theme_default mytheme -y
- Set the Admin Theme (to rubik)
drush vset admin_theme rubik -y
- Use the Admin theme for Content Editing
drush vset node_admin_theme 1 -y
GET SOME MODULES
SOME HANDY DEVELOPMENT MODULES
- drush en admin_menu devel devel_generate -y
CTOOLS DEVELOPMENT NEEDED MODULES:
- drush en panels views -y
- drush en page_manager -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment