{"id":1180,"date":"2014-03-10T07:11:48","date_gmt":"2014-03-10T07:11:48","guid":{"rendered":"http:\/\/blog.jaringanhosting.com\/?p=1180"},"modified":"2014-03-10T07:17:15","modified_gmt":"2014-03-10T07:17:15","slug":"drupal-8-hosting-cara-untuk-menginstal-drupal8-menggunakan-drush7","status":"publish","type":"post","link":"https:\/\/blog.jaringanhosting.com\/index.php\/drupal-8-hosting-cara-untuk-menginstal-drupal8-menggunakan-drush7\/","title":{"rendered":"Drupal 8 Hosting :: Cara untuk Menginstal Drupal8 Menggunakan Drush7 Make"},"content":{"rendered":"<p>Posting blog ini akan menunjukkan cara untuk menginstal <a title=\"drupal hosting jaringanhosting.com\" href=\"http:\/\/jaringanhosting.com\/Indonesia-Drupal-Hosting\">Drupal8<\/a> menggunakan Drush7 Make.<br \/>\nDalam sebuah projek saya biasanya membuat 2 file, Bash script dan Drush Makefile.<br \/>\nBerikut adalah Bash Script projek ini, build.sh:<\/p>\n<p><a title=\"drupal hosting jaringanhosting.com\" href=\"http:\/\/jaringanhosting.com\/Indonesia-Drupal-Hosting\"><img loading=\"lazy\" class=\"size-medium wp-image-1190 aligncenter\" alt=\"drupal hosting jaringanhosting.com\" src=\"http:\/\/blog.jaringanhosting.com\/wp-content\/uploads\/2014\/03\/banner-jarhost-21-300x117.png\" width=\"300\" height=\"117\" srcset=\"https:\/\/blog.jaringanhosting.com\/wp-content\/uploads\/2014\/03\/banner-jarhost-21-300x117.png 300w, https:\/\/blog.jaringanhosting.com\/wp-content\/uploads\/2014\/03\/banner-jarhost-21.png 712w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><em>start_time=`date +%s`<\/em><br \/>\n<em> echo &#8220;This script will build the project website using Drush Make.&#8221;<\/em><br \/>\n<em> sleep 5<\/em><br \/>\n<em> PROJ=&#8221;\/path\/to\/myProject&#8221;<\/em><br \/>\n<em> SRC=&#8221;${PROJ}\/source&#8221;<\/em><br \/>\n<em> BUILD=&#8221;${PROJ}\/src\/build&#8221;<\/em><br \/>\n<em> DIST=&#8221;${PROJ}\/dist&#8221;<\/em><br \/>\n<em> WWW=&#8221;${PROJ}\/dist\/www&#8221;<\/em><br \/>\n<em> drush=&#8221;${PROJ}\/drush7\/drush&#8221;<\/em><br \/>\n<em> year=`date +%Y`<\/em><br \/>\n<em> PATH=&#8221;$HOME\/.composer\/vendor\/bin:\/usr\/local\/bin:$PATH&#8221;<\/em><br \/>\n<em> echo &#8220;We are using the following version of Drush:&#8221;<\/em><br \/>\n<em> echo $drush<\/em><br \/>\n<em> $drush &#8211;version<\/em><br \/>\n<em> sleep 15<\/em><br \/>\n<em> echo &#8220;Clobbering files in ${WWW}.&#8221;<\/em><br \/>\n<em> sudo rm -rfv $WWW<\/em><br \/>\n<em> sudo rm -rfv ${DIST}\/*<\/em><br \/>\n<em> sleep 5<\/em><br \/>\n<em> echo &#8220;running drush make file for Project website build.&#8221;<\/em><br \/>\n<em> echo &#8220;This will build the website.&#8221;<\/em><br \/>\n<em> $drush &#8211;verbose make .\/my_website.make ${WWW}\/<\/em><br \/>\n<em> mkdir -p &#8220;${WWW}\/sites\/default\/files&#8221;<\/em><br \/>\n<em> chmod -R a+rw &#8220;${WWW}\/sites\/default&#8221;<\/em><br \/>\n<em> echo &#8220;Installing Drupal 8 using custom project profile.&#8221;<\/em><br \/>\n<em> cd $WWW<\/em><br \/>\n<em> $drush site-install standard \\<\/em><br \/>\n<em> &#8211;site-mail=&#8221;helpdesk@test.edu&#8221; \\<\/em><br \/>\n<em> &#8211;locale=&#8221;en&#8221; \\<\/em><br \/>\n<em> &#8211;db-url=&#8221;mysql:\/\/dev_user:dev@localhost\/mysite_drupal8&#8243; \\<\/em><br \/>\n<em> &#8211;account-name=&#8221;_admin&#8221; \\<\/em><br \/>\n<em> &#8211;account-pass=&#8221;@dev${year}&#8221; \\<\/em><br \/>\n<em> &#8211;account-mail=&#8221;test@test.edu&#8221; \\<\/em><br \/>\n<em> &#8211;site-name=&#8221;MyProject Website&#8221; -y<\/em><br \/>\n<em> sudo chmod -R a+rw &#8220;${WWW}\/sites\/default\/files&#8221;<\/em><br \/>\n<em> $drush cron -v<\/em><br \/>\n<em> $drush cache-rebuild -v<\/em><\/p>\n<p>Sedangkan untuk Drush makefile, my_site.make:<br \/>\n<em>;<\/em><br \/>\n<em> ; This makefile builds Drupal Core + a custom website\/project build makefile.<\/em><br \/>\n<em> ;<\/em><br \/>\n<em> ; Core version<\/em><br \/>\n<em> ; The make file always begins by specifying the core version of Drupal for<\/em><br \/>\n<em> ; which each package must be compatible.<\/em><br \/>\n<em> core = 8.x<\/em><\/p>\n<p><em>; API version<\/em><br \/>\n<em> ; The make file must specify which Drush Make API version it uses.<\/em><br \/>\n<em> api = 2<\/em><br \/>\n<em> ; Drupal core<\/em><br \/>\n<em> ; Specific version<\/em><br \/>\n<em> ;projects[drupal][version] = 8.0<\/em><br \/>\n<em> ; Head from git<\/em><br \/>\n<em> projects[drupal][download][type] = git<\/em><br \/>\n<em> projects[drupal][download][url] = http:\/\/git.drupal.org\/project\/drupal.git<\/em><br \/>\n<em> projects[drupal][download][branch] = 8.x<\/em><br \/>\n<em> projects[drupal][download][tag] = 8.0-alpha9<\/em><br \/>\n<em> ;projects[drupal][download][revision] =<\/em><br \/>\n<em> ; Includes<\/em><br \/>\n<em> ; include other make files from local or remote destinations<\/em><br \/>\n<em> ; includes[modules] = &#8220;modules.make&#8221;<\/em><br \/>\n<em> ; includes[example_relative] = &#8220;..\/example_relative\/example_relative.make&#8221;<\/em><br \/>\n<em> ; includes[remote] = &#8220;http:\/\/www.example.com\/remote.make&#8221;<\/em><br \/>\n<em> includes[development] = &#8220;http:\/\/localhost:4000\/drush-makefiles\/development.make&#8221;<\/em><\/p>\n<p>Saya kemudian cukup memanggil bash script yang tadi dibuat dan Drupal8 diinstal ke direktori tujuan menggunakan profil instalasi standar.<br \/>\nBerikut adalah note vs typical Drupal7:<\/p>\n<ul>\n<li>Makefile ini menggunakan includes[]. Ini adalah sarana untuk menggunakan tambahan makefiles lokal atau remote. Ini bisa menjadi cara yang baik mengatur makefile Anda!<\/li>\n<li>Bash script menggunakan cache-rebuild, cache-clear atau singkatan &#8220;cc&#8221; yang telah deperacted di Drupal 8.<\/li>\n<li>Dalam Drupal8, karena Anda mengembangkan Profil Instalasi sendiri, Anda kemudian dapat mengubah nama Standar build.sh dengan nama Profil Anda sendiri dan Anda memiliki script installasi yang dapat digunakan dengan Git dan versi kontrol dari installation\/build procedure anda.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Posting blog ini akan menunjukkan cara untuk menginstal Drupal8 menggunakan Drush7 Make. Dalam sebuah projek saya biasanya membuat 2 file, Bash script dan Drush Makefile. Berikut adalah Bash Script projek ini, build.sh: start_time=`date +%s` echo &#8220;This script will build the<\/p>\n","protected":false},"author":2505,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/posts\/1180"}],"collection":[{"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/users\/2505"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/comments?post=1180"}],"version-history":[{"count":0,"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/posts\/1180\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/media?parent=1180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/categories?post=1180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jaringanhosting.com\/index.php\/wp-json\/wp\/v2\/tags?post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}