Skip to content

Instantly share code, notes, and snippets.

@saltednut
Last active March 26, 2016 04:09
Show Gist options
  • Save saltednut/5110901 to your computer and use it in GitHub Desktop.
Save saltednut/5110901 to your computer and use it in GitHub Desktop.

Revisions

  1. Brant Wynn revised this gist Jan 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dice.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ drupal_install_clean_env() {
    cd ~/
    fi
    if [[ -r $1 ]]; then
    drush make --working-copy $1 $2
    drush make --working-copy --concurrency=5 $1 $2
    cd $2
    drush si $7 --db-url=mysql://$3:$4@localhost:3306/$5 --db-su=$3 --db-su-pw=$4 --site-name="$6" --account-name=admin --account-pass=admin -y
    # Files directory (local dev)
  2. @brantwynn brantwynn revised this gist Dec 27, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dice.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ drupal_install_clean_env() {
    cd ~/
    fi
    if [[ -r $1 ]]; then
    drush make $1 $2
    drush make --working-copy $1 $2
    cd $2
    drush si $7 --db-url=mysql://$3:$4@localhost:3306/$5 --db-su=$3 --db-su-pw=$4 --site-name="$6" --account-name=admin --account-pass=admin -y
    # Files directory (local dev)
  3. @brantwynn brantwynn revised this gist May 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dice.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # sourced from .zshrc (or .bash_profile)
    #!/usr/bin/env bash

    # Usage: dice makefile docroot dbuser dbpass dbname sitename install-profile
    drupal_install_clean_env() {
  4. @brantwynn brantwynn renamed this gist Mar 8, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @brantwynn brantwynn revised this gist Mar 8, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions drupal_install_clean.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # sourced from .zshrc (or .bash_profile)

    # Usage: dic makefile docroot dbuser dbpass dbname sitename install-profile
    drupal_install_clean() {
    # Usage: dice makefile docroot dbuser dbpass dbname sitename install-profile
    drupal_install_clean_env() {
    if [[ -r $2 ]]; then
    sudo rm -r $2
    cd ~/
    @@ -16,4 +16,4 @@ drupal_install_clean() {
    #sudo chown -R _www:_www $2/sites/default/files
    fi
    }
    alias dic=drupal_install_clean
    alias dice=drupal_install_clean_env
  6. @brantwynn brantwynn revised this gist Mar 7, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion drupal_install_clean.sh
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,5 @@ drupal_install_clean() {
    # Files directory (remote dev/stage/prod)
    #sudo chown -R _www:_www $2/sites/default/files
    fi
    }
    }
    alias dic=drupal_install_clean
  7. @brantwynn brantwynn created this gist Mar 7, 2013.
    18 changes: 18 additions & 0 deletions drupal_install_clean.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # sourced from .zshrc (or .bash_profile)

    # Usage: dic makefile docroot dbuser dbpass dbname sitename install-profile
    drupal_install_clean() {
    if [[ -r $2 ]]; then
    sudo rm -r $2
    cd ~/
    fi
    if [[ -r $1 ]]; then
    drush make $1 $2
    cd $2
    drush si $7 --db-url=mysql://$3:$4@localhost:3306/$5 --db-su=$3 --db-su-pw=$4 --site-name="$6" --account-name=admin --account-pass=admin -y
    # Files directory (local dev)
    sudo chmod -R 777 $2/sites/default/files
    # Files directory (remote dev/stage/prod)
    #sudo chown -R _www:_www $2/sites/default/files
    fi
    }