Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
87
中年がGraphQLを使ってみた感想
motchang
0
530
social patron service
motchang
0
140
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
Game over? The fight for quality and originality in the time of robots
wayneb77
1
290
Navigating Weather and Climate Data
rabernat
0
540
We Are The Robots
honzajavorek
0
380
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8k
RailsConf 2023
tenderlove
30
1.6k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
My Coaching Mixtape
mlcsv
0
330
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ҠߦͰ͖Δʂ ·ͱΊ