Skip to content

Instantly share code, notes, and snippets.

@jsnshrmn
Last active August 29, 2015 14:17
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 jsnshrmn/e9c54ddb0d29889baa39 to your computer and use it in GitHub Desktop.
Save jsnshrmn/e9c54ddb0d29889baa39 to your computer and use it in GitHub Desktop.
Using ltp drupal utils

Using LTP drupal utilities

All of these want SELinux

Bootstrap to get a dumb drupal install

Usage:

/opt/ltp/bootstrap_drupal.sh /srv/example

Expects a path. Builds into 'drupal' subdir, eg. /srv/example/drupal
Puts default site into 'default' subdir, eg. /srv/example/default
settings.php and db install included.

Deploy to get your modules, themes, etc added to sites/all

Usage:

/opt/ltp/deploy_drupal.sh /srv/example /path/to/makefile/local/or/http

Expects a path and a makefile. Leaves your default site alone, but blows away the Drupal codebase

Sync to drag files and db from a remote Drupal site to a corresponding local site.

Usage:

/opt/ltp/sync_drupal.sh /srv/example host-or-alias

Expects a path and a host. Can use ssh aliases.
There should already be a Drupal site at the same path on the remote and local systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment