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
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
84
中年がGraphQLを使ってみた感想
motchang
0
520
social patron service
motchang
0
140
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Paper Plane (Part 1)
katiecoart
PRO
1
10k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
980
AI: The stuff that nobody shows you
jnunemaker
PRO
9
870
Fireside Chat
paigeccino
42
4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
460
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
330
Discover your Explorer Soul
emna__ayadi
2
1.2k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
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ҠߦͰ͖Δʂ ·ͱΊ