Skip to content

Instantly share code, notes, and snippets.

@otsuarez
Created January 16, 2016 15:45
Show Gist options
  • Save otsuarez/e1235ec082f54bc2215b to your computer and use it in GitHub Desktop.
Save otsuarez/e1235ec082f54bc2215b to your computer and use it in GitHub Desktop.
cd /var/www
drush dl drupal-7
mv drupal-7.41 html
cd html
# set variables ...
drush -v site-install standard --db-url=mysql://${DB_USER}:${DB_PASS}@localhost/${DB_NAME} --account-name=${ADMIN_USER} --account-pass=${ADMIN_PASS} --account-mail=${MAIL} --site-name="${SITE_NAME}" --site-mail=${MAIL}
drush --yes dl restful
# Download and enable module and its dependencies
drush --yes dl registry_autoload
drush --yes dl entity_validator-7.x-2.0
drush --yes dl plug
drush --yes dl entity
drush --yes dl entityreference
drush --yes dl uuid
drush --yes pm-enable plug
# Patch Entity API.
curl -s -O https://www.drupal.org/files/issues/2086225-entity-access-check-node-create-3.patch
patch -p1 sites/all/modules/entity/modules/callbacks.inc < 2086225-entity-access-check-node-create-3.patch
# Enable the RESTful modules
drush --yes pm-enable simpletest restful restful_token_auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment