]> gitweb.fluxo.info Git - templater.git/commitdiff
Drupal 8: Makefile: site_install_sqlite target
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 15:37:43 +0000 (13:37 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 15:37:43 +0000 (13:37 -0200)
share/templater/drupal8/Makefile

index c535eb36a468cc3647d4e0a402c31c71e5367292..ce0eb53ba80645e12255aa6cd89b8205e38955b7 100644 (file)
@@ -95,6 +95,13 @@ drush:
 site_install:
        $(DRUSH) site-install
 
+# Run drush site-install, sqlite version
+# See https://api.drupal.org/api/drupal/core%21INSTALL.sqlite.txt/8.4.x
+site_install_sqlite:
+       mkdir -p sql/.ht.sqlite
+       touch sql/dumps/.ht.sqlite
+       $(DRUSH) site-install --db-url=sqlite://$(CWD)/sql/dumps/.ht.sqlite
+
 # Update the database
 updatedb:
        $(DRUSH) updatedb -y