Slide 1

Slide 1 text

Drupal 9 Web։ൃ͜ͱ͸͡Ί Drupal Meetup ๛ాɹখদߴኍ 2021/5/29 OSC2021 Online/Nagoya ͳʹͦΕʁ͓͍͍͠ͷʁ 1

Slide 2

Slide 2 text

ࣗݾ঺հ - খদߴኍʢ͜·ͭ ͔ͨͻΖʣ - Ѫ஌ݝמ୩ࢢ - ϑϦʔϥϯεͷΤϯδχΞ - ճ࿏ઃܭɾج൘ઃܭ͔Β αʔόߏஙɾΞϓϦ։ൃ·Ͱ޿͘ઙ͘ - ࠷ۙͷڵຯ: Rust / WebAssembly / WebRTC Kubernetes / FPGA / ௿ϨΠϠ / ࣗ࡞OS ίϯύΠϥ / ΞΫηγϏϦςΟ NLP (ࣗવݴޠॲཧ) / KR (஌ࣝදݱ) 2

Slide 3

Slide 3 text

๻ͱ Drupal ͱͷग़⁊͍ 3

Slide 4

Slide 4 text

2018 / 5 / 9 4

Slide 5

Slide 5 text

ͱ͋Δ IoT ͷίϛϡχςΟͰ ;ͱ࣭໰͞Εͨ 5

Slide 6

Slide 6 text

ʮ Drupal ͬͯ஌ͬͯ·͢ʁʯ 6

Slide 7

Slide 7 text

͏ʔΜ … ࢒೦ͳ͕Β શ͘ฉ͍ͨ͜ͱͳ͍Ͱ͢Ͷ 😅 7

Slide 8

Slide 8 text

ʮࠓ౓ Drupal ͷίϛϡχςΟͰ ษڧձΛ࢝ΊΔΜͰ͢ɻ Α͔ͬͨΒࢀՃͯ͠Έ·ͤΜ͔ʁʯ 8

Slide 9

Slide 9 text

ͳΜ͔͓ͩ΋͠Ζͦ͏ 9

Slide 10

Slide 10 text

ͻͱ·͓ͣ͏ͪ΁ؼͬͯ Drupal ʹ͍ͭͯௐ΂ͯΈͨ 10

Slide 11

Slide 11 text

11

Slide 12

Slide 12 text

Ͳ͏΍Β … CMSʁΈ͍ͨ 12

Slide 13

Slide 13 text

ʢิ଍ʣ੩తαΠτ 13 HTTP Server Response Request .html Web Browser

Slide 14

Slide 14 text

ʢิ଍ʣಈతαΠτ 14 abc 123 DB Server HTTP Server Response Request APP Server CMS .html Web Browser

Slide 15

Slide 15 text

WordPress Έ͍ͨʁ ͳ΋ͷ͔ͳ… 15

Slide 16

Slide 16 text

Ͱ΋೔ຊޠ৘ใ͕શવͳͯ͘ ͬ͞ͺΓΘ͔Βͳ͍…😢 16

Slide 17

Slide 17 text

ίϛϡχςΟΠϕϯτʹߦͬͯ ࢖͍ͬͯΔਓʹ௚઀ฉ͍ͯΈΑ͏ 17

Slide 18

Slide 18 text

Drupal Meetup ๛ా 18

Slide 19

Slide 19 text

Drupal Meetup ๛ా - 2018/5 ͔Β։࠵ - 2020/4 ͔ΒΦϯϥΠϯ։࠵ - Ѫ஌ݝ಺΍ݝ֎ͷDrupalʹڵຯ͋Δ ਓ͕ू·͍ͬͯΔίϛϡχςΟ - ษڧձͱ͍͏ΑΓ͸Drupalؔ࿈ͷ࠲ ஊձͳงғؾ - https://drupal-meetup- toyota.connpass.com 19

Slide 20

Slide 20 text

Meetup ʹࢀՃͯ͠ΈͨΒ 20

Slide 21

Slide 21 text

Drupal ͷಛ௃͕ গͣͭ͠෼͔Γ࢝Ίͨ 21

Slide 22

Slide 22 text

- Φʔϓϯιʔε(GPLv2+)ͷCMS - Dries Buytaert @Dries ͕ PHPͰॻ͖࢝Ίͨ - ॳϦϦʔε 2001/1/15 - ࠷৽൛ 9.1.9 (2021/5/29 ݱࡏ) 22 https://www.acquia.com/jp/blog/drupal-celebrates-20-years https://www.drupal.org/project/drupal https://www.drupal.org/about/licensing

Slide 23

Slide 23 text

Drupal 9 ಈ࡞؀ڥ - Apache 2.4.7 Ҏ߱ Nginx 0.7.x Ҏ߱ - PHP 7.3 Ҏ߱ (Drupal 9.1.0 ͔Β PHP 8 ʹରԠ) - MySQL 5.7.8 Ҏ߱ MariaDB 10.3.7 Ҏ߱ SQLite 3.26 Ҏ߱ PostgreSQL 10 Ҏ߱ (pg_trgm ඞਢ) 23 https://www.drupal.org/docs/user_guide/en/install-requirements.html

Slide 24

Slide 24 text

CMSγΣΞʢ2021/5/29ݱࡏʣ 24 ˔ WordPress 64.9 % ˔ Shopify 5.5 % ˔ Joomla 3.2 % ˔ Squarespace 2.6 % ˔ Wix 2.5 % ˔ Drupal 2.3 % ˔ ͦͷଞ 19.0 % https://w3techs.com/technologies/history_overview/content_management/ms/y

Slide 25

Slide 25 text

DrupalΛར༻͍ͯ͠ΔαΠτྫʢւ֎ʣ - Pfizer https://www.pfizer.com - Moderna https://www.modernatx.com - Astellas Pharma https://www.astellas.com - Tesla https://www.tesla.com 25 - NASA https://www.nasa.gov - Nasdaq https://www.nasdaq.com - University of Oxford https://www.ox.ac.uk - LUSH https://lush.com - IBM https://www.ibm.com - Red Hat https://www.redhat.com - AMD https://www.amd.com - NOKIA https://www.nokia.com

Slide 26

Slide 26 text

DrupalΛར༻͍ͯ͠ΔαΠτྫʢࠃ಺ʣ - ࡾඛॏ޻ https://www.mhi.com - ࡾҪԽֶ https://jp.mitsuichemicals.com - ژ౎େֶ https://www.kyoto-u.ac.jp - ౦ژେֶ ࠃࡍߴ౳ݚڀॴ ΧϒϦ਺෺࿈ܞӉ஦ݚڀػߏ https://www.ipmu.jp/ja 26 - ԭೄՊֶٕज़େֶӃେֶ(OIST) https://www.oist.jp - Think IT https://thinkit.co.jp - খֶؗ https://www.shogakukan.co.jp - ॣՏ԰.JP https://www.suruga-ya.jp

Slide 27

Slide 27 text

Drupal ͷ޷͖ͳͱ͜Ζ - ػೳΛߏ੒͢Δ֤Ϟδϡʔϧ͕͔ͳΓ௚ަ ʢಉҰػೳͷ GUI ͸ผϞδϡʔϧʹ෼཭ʣ - αΠτϖʔδɾ؅ཧϖʔδ ͦΕͧΕʹݸผͷςʔϚΛઃఆͰ͖Δ ʢ؅ཧϖʔδΛઃܭ͠қ͍ʣ - ϢʔβݖݶΛৄࡉʹઃఆͰ͖Δ ʢϫʔΫϑϩʔΛઃܭ͠қ͍ʣ - ଟݴޠԽͷػೳ͕σϑΥϧτͰଘࡏ 27

Slide 28

Slide 28 text

Drupal is Simple - Simple ≠ Easy - ֓೦͕ચ࿅͞Ε͍ͯΔ = ௚ަԽ - Simple ͳ΋ͷ͸ந৅౓͕ߴ͘ͳΔ ʢe.g. ਺ֶɾ෺ཧʣ 28

Slide 29

Slide 29 text

ίϯςϯπ ≠ Webϖʔδ 29

Slide 30

Slide 30 text

ίϯςϯπ - text - audio - image - video - binary data - ग़དྷ্͕Δ΋ͷ͸ඞͣ͠΋ ʮWebϖʔδʯͱ͸ݶΒͳ͍ 30

Slide 31

Slide 31 text

ιϑτ΢ΣΞ = σʔλม׵ʢߏ଄Խʣ+ ৘ใϑΟϧλ 31 APP Server DB Server HTTP Server abc 123 Drupal

Slide 32

Slide 32 text

API API Headless / Decoupled architecture 32 Tablet Digital Signage APP Server Smart Phone Personal Computer Smart Speaker API SPA / Native App API Drupal abc 123 DB Server

Slide 33

Slide 33 text

CMSʢContent Management Systemʣ ͱ͍͏ΑΓ͸ CMFʢContent Management Frameworkʣ 33

Slide 34

Slide 34 text

DXP ʢDigital eXperience Platformʣ 34

Slide 35

Slide 35 text

ֶशίετ - ॳΊͯ৮Δਓʹ͸Ͳͷ෦෼ͷߏஙΛͯ͠ ͍Δͷ͔ཧղͮ͠Β͍ - Custom Content Type - Taxonomy - Views - Block - ઌͷઌΛݟ௨ͨ͠ઃܭΛ͢Δ͜ͱ͸ඇৗ ʹ೉қ౓͕ߴ͍ - ·ͣ͸ͨ͘͞Μʮ࡞ͬͯ͸յ͢ʯܦݧΛ ॏͶΔ͜ͱ͕େ੾ 35 http://www.codem0nk3y.com/2012/04/what-bugs-me-about-modx-and-why/cms-learning-curve/

Slide 36

Slide 36 text

Custom Content Type -ʮܕʯߏ଄Λ࡞Δ -σʔλΛάϧʔϐϯά͢ΔͨΊ ͷ࿮૊Λ࡞ΔΠϝʔδ -σʔλϕʔεͷʮςʔϒϧʯͷ ఆٛʹ͍ۙ -ʮߏ଄ମʯ΍ʮΫϥεʯͷએݴ ʹ΋͍ۙ ΧελϜίϯςϯπλΠϓ 36 അ໊ ໟ৭ ੑผ ੜ೥݄೔ ੜ࢈ऀ അओ ௐڭࢣ ઓ੷ ֫ಘ৆ۚ

Slide 37

Slide 37 text

ίϯςϯπλΠϓͷྫ 37 ༗അه೦ ౦ژ༏ॣ 1993೥ 1998೥ 12݄26೔ 6݄7೔ 15:20 15:30 தࢁ ౦ژ ࣳ ࣳ ӈ ࠨ ฏ஍ ฏ஍ 2500 2400 Ϩʔε໊ ։࠵೥ ։࠵݄೔ ൃ૸࣌ࠁ ։࠵৔ അ৔ ํ޲ छผ ڑ཭ ίϯςϯπλΠϓɿϨʔε ίϯςϯπ

Slide 38

Slide 38 text

Taxonomy -ίϯςϯπʹ෇༩͢Δϥϕϧ -ʮू߹ʯ͓Αͼʮ֊૚ʯߏ଄Λ࡞Δ -λά͸ϘΩϟϒϥϦʔͷҰछɿN:M ʢ֤ίϯςϯπʹରͯ͠બ୒ࢦఆՄʣ -ΧςΰϦ΋ϘΩϟϒϥϦʔͷҰछɿ1:M ʢ֤ίϯςϯπʹରͯ͠୒Ұʣ -ར༻࣌ʹݕࡧ͍ͨ͠ཁૉΛλʔϜͱ͠ ͯఆٛ͢ΔͱΑ͍ λΫιϊϛʔ 38 λΫιϊϛʔ ϘΩϟϒϥϦʔ B ϘΩϟϒϥϦʔ A ϘΩϟϒϥϦʔ C λʔϜ 1 λʔϜ 2 λʔϜ 3 λʔϜ 4 λʔϜ 5 λʔϜ 6

Slide 39

Slide 39 text

ʮἙໟʯʁ ʮഅ৔ঢ়ଶʯʁ ʮࠨճΓʯʁ 39

Slide 40

Slide 40 text

λΫιϊϛʔͷྫ 40 Ϩʔε ίϯσΟγϣϯ അ৔ঢ়ଶ അ৔ ํ޲ ࣳ μʔτ ྑ ᜗ॏ ӈ ࠨ അ ඼छ ໟ৭ ੑผ നໟ Ἑໟ αϥ Ξϥϒ Դ ໒

Slide 41

Slide 41 text

σʔλߏ଄ͷఆٛ͸ σʔλͷʮ࢖͍ํʯʹґଘ͢Δ 41

Slide 42

Slide 42 text

Views -ʮϑΟϧλʯΛఆٛ͢Δ -DB Server ʹର͢ΔΫΤϦϏϧ μͱͯ͠ಇ͘ -ݕࡧ΍ϦετදࣔΛ؆୯ʹ࣮ݱ Ͱ͖Δ Ϗϡʔζ 42 APP Server abc 123 Drupal DB Server Views

Slide 43

Slide 43 text

Block -ϖʔδ্ͷʮҐஔʯΛఆٛ͢Δ -֤ϒϩοΫʹ View ΍ Menu Λ ೖΕΔ͜ͱ΋Ͱ͖Δ -ϨΠΞ΢τมߋ͕༰қͰॊೈ ϒϩοΫ 43

Slide 44

Slide 44 text

ઌΛݟ௨ͨ͠σʔλߏ଄Λ࡞Δ೉͠͞ - ౰ॳ͸੩తͩͱࢥͬͯͨσʔλߏ଄͕ಈతʹ มΘΔՄೳੑ - σʔλଐੑͷରԠؔ܎ 1:1 / N:1 / 1:M / N:M - ྫ֎తͳσʔλͷѻ͍ - σʔλߋ৽ͷཤྺɾมભ͕ཉ͍͠ͱ͖ - ߋ৽ස౓ͷߴ͍σʔλ͸ͦ΋ͦ΋σʔλߏ଄ ͱѻ͍ํΛม͑Δ΂͖ʁ ʢe.g. Φοζʣ 44 Ϩʔε໊ ։࠵೥ ։࠵݄೔ ൃ૸࣌ࠁ ։࠵৔ അ৔ ํ޲ छผ ڑ཭ അ໊ ໟ৭ ੑผ ੜ೥݄೔ ੜ࢈ऀ അओ ௐڭࢣ ઓ੷ ֫ಘ৆ۚ

Slide 45

Slide 45 text

ߴػೳͰศརͦ͏͚ͩͲ ΍ͬͺΓֶशίετߴͦ͏...😰 45

Slide 46

Slide 46 text

Ͳ͏ͨ͠ΒֶशίετΛ Լ͛ΒΕΔʁ...🤔 46

Slide 47

Slide 47 text

ͦ͏ͩ ಉਓࢽɺॻ͜͏ɻ 47

Slide 48

Slide 48 text

ಉਓࢽΛॻ͍ͨ - ٕज़ॻయ10ͷग़లక੾೔ʢ2020/11/30ʣʹ ࢥཱ͍ͬͯͱΓ͋͑ͣਃ͠ࠐΈ - ࣥචظؒ͸໿3िؒʢ2020/12/1 — 12/24ʣ - ຊΛશ͘ॻ͍ͨ͜ͱͳ͍ϝϯόʔ͹͔Γ - ؔ౦ɾ๺ւಓɾѪ஌ͷϝϯόʔ8ਓͰݪߘΛ GitHub্ͰCIճ͠ͳ͕ΒϚʔδͯࣥ͠ච - ͳΜͱ͔క੾DrivenͰॻ্͖͛ͨʂ - ࣥචܦҢͷৄࡉ https://www.acquia.com/jp/blog/published-drupal-ebook-in- techbookfest10 48 Drupal 9 Web։ൃΛ͸͡ΊΔͨΊͷബ͍ຊ

Slide 49

Slide 49 text

ಉਓࢽͷ໨࣍ - Drupal ͱ͸Կ͔ʁ - Drupal ͷαΠτΛߏஙͯ͠ΈΔ - CentOS 8 Λ࢖ͬͨ Drupal 9 α Πτ؀ڥߏங - Drupal ΛίϚϯυϥΠϯͰૢ࡞ ͢Δ - Drupalͷߏ੒؅ཧ 49 - αΠτϏϧμʔ෉්߹֨ମݧه - GoogleϩάΠϯΛ࣮ݱ͢Δ - ؅ཧը໘Λ΋ͬͱศརʹʂ Ϟδϡʔϧ3બ - Migrate ೖ໳ - Drupal.org ͷา͖ํ

Slide 50

Slide 50 text

Ͳ͏ͨ͠Β Drupal Λ ΋ͬͱ஌ͬͯ΋Β͑Δͷ͔ʁ...🤔 50

Slide 51

Slide 51 text

ಉਓࢽΛॻ͍ͨΒ ঎ۀࢽԽͷ͓࿩͕΍ͬͯདྷͨ 51

Slide 52

Slide 52 text

"If you want to go fast, go alone. If you want to go far, go together." 52 ૣ͘ߦ͖͚ͨΕ͹ɺͻͱΓͰߦ͚ɻ ԕ͘·Ͱߦ͖͚ͨΕ͹ɺΈΜͳͰߦ͚ɻ

Slide 53

Slide 53 text

঎ۀࢽΛॻ͍ͨ - ಉਓࢽͷ಺༰Λमਖ਼&Ճච - ίΞͷΞοϓσʔτ - ςʔϚ։ൃ - 2021/4/16 ϦϦʔε - ిࢠॻ੶ or ϓϦϯτΦϯσϚϯυ - DrupalΛॳΊͯ৮Δਓ͕ͻͱ·ͣαΠτ Λ࡞ΕΔΑ͏ʹͳΔ·Ͱͷཁૉ͸આ໌͠ ͍ͯΔ...͸ͣ https://nextpublishing.jp/book/12999.html 53 Drupal 9 Web։ൃ͜ͱ͸͡Ί

Slide 54

Slide 54 text

https://nextpublishing.jp/book/ 12999.html 54 Check it out !

Slide 55

Slide 55 text

Drupal ͷ༡ͼํ 55

Slide 56

Slide 56 text

·ͣ͸ Umami αΠτΛ ৮ͬͯΈΑ͏ʂ 56

Slide 57

Slide 57 text

Umami - PHP ͷϏϧτΠϯ Web Server ͱ SQLite Ͱ Drupal ؀ڥΛϩʔΧϧʹ ߏஙͯ͠ࢼͤΔ - ͋͘·Ͱςετ༻ϓϩϑΝΠϧͳͷ Ͱຊ൪؀ڥʹσϓϩΠ͠ͳ͍Α͏ʹ ஫ҙ - UmamiΛ೔ຊޠԽ͢Δهࣄ https://annai.co.jp/article/drupal8- umami-install-profile-japanese ͏·Έ 57 https://www.drupal.org/docs/installing-drupal/drupal-quick-start-command

Slide 58

Slide 58 text

ͨͬͨ2ߦ͚ͩͰࢼͤ·͢👍 58 mkdir drupal && cd drupal && curl -sSL https://www.drupal.org/ download-latest/tar.gz | tar -xz --strip-components=1 php ./core/scripts/drupal quick-start demo_umami $ $

Slide 59

Slide 59 text

ʢิ଍ʣPHP Fatal error: Allowed memory size of xxxxxxxxx bytes exhausted $ php ./core/scripts/drupal quick-start demo_umami Λ࣮ߦͨ͠ࡍʹ্هΤϥʔ͕දࣔ͞Εͨ৔߹ ʢݪҼʣPHP࣮ߦ༻ʹׂΓ౰ͯΒΕ͍ͯΔϝϞϦ͕গͳ͍ ʢ֬ೝʣ $ php -i | grep memory_limit ʢରԠʣ/etc/php.ini ಺ͷ memory_limit Λ 256M Ҏ্ʹमਖ਼͢Δ 59 memory_limit => 128M => 128M

Slide 60

Slide 60 text

Umami σϞ 60

Slide 61

Slide 61 text

͓͍͍͔͠Ͳ͏͔͸ ͥͻࣗ෼Ͱࢼ৯ͯ͠Έ·͠ΐ͏😋 61

Slide 62

Slide 62 text

Acquia Certification - Acquia ͕ओ࠵͍ͯ͠Δ Drupal ೝఆࢼݧ - αΠτϏϧμʔ - σϕϩούʔ - ϑϩϯτΤϯυεϖγϟϦετ - όοΫΤϯυεϖγϟϦετ - डݧྉ $155 — $350 - https://www.acquia.com/jp/solutions/ customer-success/acquia-certification ΞΫΠΞೝఆࢼݧ 62

Slide 63

Slide 63 text

αΠτϏϧμʔ෉්߹֨ମݧه 63 ΤϯδχΞ σβΠφʔ Drupalॳ৺ऀͷ෉්͕ ೋਓͦΖͬͯࢼݧʹड͔Δ·Ͱͷ ษڧ๏΍ϙΠϯτΛ·ͱΊͯ·͢ʂ

Slide 64

Slide 64 text

࣍ճͷٕज़ॻయ11ʹ޲͚ͯ ଓฤͷ Drupal ಉਓࢽΛӶҙࣥචதʂ💪 64

Slide 65

Slide 65 text

ݱࡏΦϯϥΠϯͰ։࠵͍ͯ͠Δ Drupal Meetup - ͲΕ΋݄1ճ͙Β͍ͷϖʔεͰ։࠵͍ͯ͠Δ - Drupal Meetup ๛ా https://drupal-meetup-toyota.connpass.com - Drupal Meetup Ӌా https://drupal-meetup-haneda.connpass.com - Drupal Meetup Tokyo https://drupal-tokyo.connpass.com 65

Slide 66

Slide 66 text

66 © DrupalCamp DEN 2019 NAGOYA

Slide 67

Slide 67 text

ͥͻ Drupal Meetup / Camp Ͱ ͓ձ͍͠·͠ΐ͏ʂ 67

Slide 68

Slide 68 text

Thank you ! 68

Slide 69

Slide 69 text

ࢀߟࢿྉ1 - DrupalެࣜαΠτ https://www.drupal.org - Drupal ࠷৽൛ͷμ΢ϯϩʔυϖʔδ https://www.drupal.org/project/drupal - CMSγΣΞͷσʔλ https://w3techs.com/technologies/history_overview/ content_management/ms/y 69

Slide 70

Slide 70 text

ࢀߟࢿྉ2 - ٕज़ॻయ10ͰDrupalͷബ͍ຊΛൃߦ͠·ͨ͠ https://www.acquia.com/jp/blog/published-drupal-ebook-in- techbookfest10 - ঎ۀࢽʮDrupal 9 Web։ൃ͜ͱ͸͡Ίʯ https://nextpublishing.jp/book/12999.html - Drupal Quick Start Command https://www.drupal.org/docs/installing-drupal/drupal-quick-start-command - Drupalೝఆࢼݧ ΞΫΠΞೝఆϓϩάϥϜ https://www.acquia.com/jp/solutions/customer-success/acquia- certification 70