Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WordPressのサイトをRailsにしたはなし
Search
Kouji OKAMOTO
May 27, 2017
1.2k
1
Share
WordPressのサイトをRailsにしたはなし
Connpass Y8 2017 spring in Shibuya
Kouji OKAMOTO
May 27, 2017
More Decks by Kouji OKAMOTO
See All by Kouji OKAMOTO
WebRTCについて 調べてみました
motchang
0
81
中年がGraphQLを使ってみた感想
motchang
0
510
social patron service
motchang
0
130
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
AI: The stuff that nobody shows you
jnunemaker
PRO
6
630
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
490
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
430
The browser strikes back
jonoalderson
0
1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
500
Balancing Empowerment & Direction
lara
6
1.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
320
The World Runs on Bad Software
bkeepers
PRO
72
12k
Six Lessons from altMBA
skipperchong
29
4.2k
Transcript
WordPressͷαΠτΛRailsʹͨ͠ͳ͠ @motchang
• ώΧΧΫʂʢhikakaku.comʣ • தݹങऔۀऀͷങ͍औΓՁ֨ ώΧΫαʔϏε
2014 ݱࡏ
• WordPress Ͱߏங͞ΕͨγεςϜ • ϒϩάͪΖΜσʔλళฮσʔλશͯهࣄ ʢPostʣͰදݱ͞Ε͍ͯͨ ώΧΧΫʂ
͜͜ʹݟ͍͑ͯΔ ɺళฮͳͲͷใ͕ શͯϒϩά̍هࣄʹ૬
= هࣄͳͷͰ Ϋϩʔϥʔ͕ಈ͘ͱ feed ͕ΧΦεʹͳΔ
ແཧͰʁ
• RailsҠߦޙURLSEO؍͔Βઈରʹม͑ͨ͘ͳ͍ • αʔϏεࢭΊͣʹঃʑʹ Rails ʹҠߦ RailsҠߦʢ2016/07ʙʣ
• ϞσϧΛؤுΔ • URLΛؤுΔ • RailsͰ࣮͞Εͨػೳ͔ΒঃʑʹϦϦʔε ͍ͬͯΔ͜ͱ
ϞσϧΛؤுΔ • WordPressͱRailsͷσʔλϕʔεΛผͷεΩʔϚʹஔ • WordPress༝དྷͷϞσϧWPͱ͍͏໊લۭؒʹ࣮
WordPress༝དྷͷϞσϧ
• WordPress ͱ Rails ͷσʔλϕʔεΛผͷεΩʔϚʹஔ • WordPress ༝དྷͷϞσϧWPͱ͍͏໊લۭؒʹ࣮ • RailsଆͷϞσϧϨʔϧʹͬͨϞσϧͰ࣮
• WordPressͱRailsͷσʔλಉظ after_save ϑοΫͰؤ ுΔ ϞσϧΛؤுΔ
Rails Ͱ۩ମͳ໊લʹͳͬͨϞσϧ
• ϫʔυϓϨεͰදݱ͞Ε͍ͯΔURLϒϩάϑϨϯυϦʔ ͳURLͰɺRESTfulͱ͍͑ͳ͍URL • Nginx Ͱ rewrite Λ͔͚ͯΑ͠ͳʹ URLΛؤுΔ
Nginx
• WordPessͰߏஙͨ͠αʔϏεͷRailsҠߦͰ͖Δʂ ·ͱΊ