Upgrade to Pro — share decks privately, control downloads, hide ads and more …

非エンジニアから開発者まで!DrupalPodを使用したDrupal環境の作成

 非エンジニアから開発者まで!DrupalPodを使用したDrupal環境の作成

https://drupal-meetup-haneda.connpass.com/event/249475/
#DrupalPod #Gitpod #IDE #VSCode #ローカル開発環境

HikaruMaruyama

June 27, 2022
Tweet

More Decks by HikaruMaruyama

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • 1991೥10݄29೔ ੜ·Ε • ಠཱܥιϑτ΢ΣΞ։ൃձࣾͰιϑτ΢ΣΞΤϯδχΞ • ͷͪΤόϯδΣϦετͱͯ͠ϓϩμΫτͷܒ໤׆ಈ • 2019೥8݄

    ΞΫΠΞʹδϣΠϯ • ΢ΣϒαΠτͷίϯςϯπͷٕज़຋༁΍ϩʔΧϥΠζΛ ୲౰ Ruby / Rails / Web API / Docker / AWS 
 ϥʔϝϯ / εΠʔπ / Ωϟϯϓ൧ / ొࢁ ؙࢁ ͻ͔Δ 
 ΞΫΠΞδϟύϯ ςΫχΧϧτϥϯεϨʔλʔ
  2. Drupal؀ڥΛαΫοͱ༻ҙ͢Δํ๏ • Acquia Dev Desktop 
 • Docker, Lando, DDEV

    
 • Simplytest.me → αϙʔτऴྃ 
 
 → ඇΤϯδχΞʹ͸೉͍͠ 
 
 → ੍࣌ؒݶ͕͋Δ(݁ߏ୹͍) DrupalPod͕ྑ͍ͷͰ͸ʁ
  3. Gitpod͚ͩͰྑͦ͞͏͡Όͳ͍ʁ DrupalPodඞཁʁͱ͍͏ํͷͨΊʹ Github͔ΒDrupalͷGitlabϦϙδτϦΛࢦఆͯ͠ىಈ͢ΔͱͲ͏ͳΔ͔ • Drupalͷιʔείʔυ͕Ϋϩʔϯ͞ΕͨIDE؀ڥ্ཱ͕͕ͪΔ • ͔ͦ͜Βcomposer installͨ͠ΓDB༻ҙͨ͠ΓWebαʔόʔىಈ͢Δͷ͸λʔϛφϧܦ༝Ͱߦ͏ඞ ཁ͕͋Δ •

    GitpodͰ͸.gitpod.ymlͱ͍͏ઃఆϑΝΠϧʹ৭ʑهड़͢Δ͜ͱͰಛఆͷDockerΠϝʔδΛར༻͠ ͨΓ೚ҙͷεΫϦϓτΛ࣮ߦͰ͖Δ 
 • ͦΕΛΰϦΰϦʹDrupal༻ʹ࠷దԽͯ͘͠Ε͍ͯΔͷ͕DrupalPod
  4. DrupalPodΛ࢖༻͢Δ • DrupalαΠτͷϢʔβʔ໊/ύεϫʔυɿadmin/admin • DevelɺAdmin ToolbarɺDrush͸ΠϯετʔϧࡁΈ • λʔϛφϧ͔Βddev, git, drush,

    composerίϚϯυ͕࣮ߦՄೳ • ςετ΍Xdebugͷ࣮ߦ • phpmyadminɺϝʔϧαʔόʔͷར༻ • DrupalαΠτΛڞ༗ͨ͠Γɺ࣮ߦதͷϫʔΫεϖʔεΛڞ༗ͯ͠ڞಉ࡞ۀͰ͖Δ
  5. ᶅIDE ര஀ DrupalPodͷ࢓૊Έ • DrupalPodͷϒϥ΢β֦ுͰԿ͕ߦΘΕ͍ͯΔͷ͔ʁ ◦ issueϖʔδ͔Βඞཁͳ৘ใΛूΊͯɺURLΛੜ੒͍ͯ͠Δ ᶃissueϖʔδʹΞΫηε https://gitpod.io/ #DP_PROJECT_NAME=google_analytics,DP_ISSUE_FORK=

    google_analytics-3291489,DP_ISSUE_BRANCH=3291489- googleanalytics.visibility-has- a,DP_PROJECT_TYPE=project_module,DP_MODULE_VERSI ON=4.0.0,DP_CORE_VERSION=9.1.x,DP_PATCH_FILE=,DP_I NSTALL_PROFILE=standard/https://github.com/shaal/ drupalpod ᶄDrupalPodͷϒϥ΢β֦ு 
 ͰGitpodͷURLΛੜ੒
  6. URLΛ֦େ͠·ͨ͠ https://gitpod.io/# 
 DP_PROJECT_NAME=google_analytics, 
 DP_ISSUE_FORK=google_analytics-3291489, 
 DP_ISSUE_BRANCH=3291489-googleanalytics.visibility-has-a, 
 DP_PROJECT_TYPE=project_module,

    
 DP_MODULE_VERSION=4.0.0, 
 DP_CORE_VERSION=9.1.x, 
 DP_PATCH_FILE=, 
 DP_INSTALL_PROFILE=standard 
 /https://github.com/shaal/drupalpod Կ΍ΒύϥϝʔλͰ ৭ʑ੍ޚͰ͖Δ 
 Α͏Ͱ͢Ͷɾɾɾ
  7. ΫΤϦจࣈྻΛউखʹղऍͯ͠Έͨ ύϥϝʔλ໊ આ໌ ྫ DP_PROJECT_NAME DrupalϓϩδΣΫτͷϚγϯ໊ ɾdrupal ɾgoogle_analytics ɾbootstrap_barrio DP_ISSUE_FORK

    ʢΦϓγϣϯʣϑΥʔΫϦϙδτϦͷࢦఆ ɾgoogle_analytics-3291489 DP_ISSUE_BRANCH ʢΦϓγϣϯʣissueʹϒϥϯν͕࡞੒͞Ε͍ͯΔ৔߹ɺϒϥϯνΛࢦఆͰ͖Δ ɾ3291489-googleanalytics.visibility-has-a DP_PROJECT_TYPE https://www.drupal.org/api-d7/node.json? field_project_machine_name={DP_PROJECT_NAME} ͷtypeͷ஋ ɾproject_core ɾproject_module ɾproject_theme DP_MODULE_VERSION ର৅ϓϩδΣΫτͷόʔδϣϯࢦఆ ɾ9.4.x ɾ5.5.x DP_CORE_VERSION DrupalίΞͷόʔδϣϯࢦఆɻର৅ϓϩδΣΫτ͕Ϟδϡʔϧ/ςʔϚͰ͸ͳ͘Drupal ίΞͷ৔߹͸DP_MODULE_VERSIONͷ஋ʹ্ॻ͖͞ΕΔɻ ɾ9.4.x DP_PATCH_FILE ʢΦϓγϣϯʣissueʹύον͕Ξοϓϩʔυ͞Ε͍ͯΔ৔߹ɺύονϑΝΠϧΛࢦఆ Ͱ͖Δ ɾhttps%3A%2F%2Fwww.drupal.org%2Ffiles 
 %2Fissues%2F2020-09-16%2F2906445-10.patch DP_INSTALL_PROFILE ʢΦϓγϣϯʣΠϯετʔϧϓϩϑΟʔϧͷࢦఆɻʮ’’ʯͷ৔߹ɺΠϯλϥΫςΟϒΠ ϯετʔϥʔ͕ىಈɻۭ΍ଘࡏ͠ͳ͍ΠϯετʔϧϓϩϑΟʔϧΛࢦఆͨ͠৔߹ɺ demo_umami͕ىಈɻ ɾstandard ɾdemo_umami ɾminimal
  8. ύϥϝʔλͷ࢓༷(?)͕෼͔ͬͨͱ͜ΖͰ https://gitpod.io/# 
 DP_PROJECT_NAME=drupal, 
 DP_ISSUE_FORK=, 
 DP_ISSUE_BRANCH=, 
 DP_PROJECT_TYPE=project_core,

    
 DP_MODULE_VERSION=9.4.0, 
 DP_CORE_VERSION=9.4.0, 
 DP_PATCH_FILE=, 
 DP_INSTALL_PROFILE=standard 
 /https://github.com/shaal/drupalpod ಛఆͷDrupalίΞόʔ δϣϯͰىಈ͢Δ͜ͱ ΋Մೳ
  9. ࢀߟ • DrupalPod ެࣜαΠτ (Github) 
 https://www.drupalpod.com/ 
 • DrupalPodͷ࢖͍ํ

    (Drupal Wiki) 
 https://www.drupal.org/docs/develop/development-tools/drupalpod 
 • DrupalPodͷνϡʔτϦΞϧಈը (Youtube) 
 https://youtu.be/bA4oYXFygPY