This is a placeholder for simple D8 goodies that will hopefully help you speed up recurring tasks.
- Those Shell scripts have been tested against Ubuntu 12.04 LTS (Precise Pangolin) and 13.10 (Saucy Salamander)
- Make sure all scripts are executable (chmod +x script.sh)
- It's safer to run those scripts within a container or VM (e.g. Docker or Vagrant)
Add the following bash aliases in your .bash_aliases file:
alias install='sudo /path/to/drupal-8-tools/provisioning/install.sh' alias delete='sudo /path/to/drupal-8-tools/provisioning/delete.sh' alias module='sudo /path/to/drupal-8-tools/scaffolding/module.sh' alias audit='sudo /path/to/drupal-8-tools/system_audit.sh' alias dump='sudo /path/to/drupal-8-tools/cmi/dump.sh' alias restore='sudo /path/to/drupal-8-tools/cmi/restore.sh'
Apply changes without rebooting:
$ . ~/.bash_aliases
To provision a Drupal 8 site, invoke the install.sh or delete.sh script directly and give it a sitename:
$ install/delete {sitename}
If you want a module scaffolding, invoke the module.sh script:
$ module
Want to quickly dump your database and corresponding CMI files? Run:
$ dump
To perform a restore, run:
$ restore
You might also want to run a quick system audit to make sure your LAMP stack is compatible with Drupal 8's minimum requirements. Simply run:
$ audit