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
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
The Invisible Side of Design
smashingmag
301
52k
Code Reviewing Like a Champion
maltzj
529
40k
Docker and Python
trallard
47
4.3k
Building AI with AI
inesmontani
PRO
1
1.4k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
370
The browser strikes back
jonoalderson
0
1.9k
How GitHub (no longer) Works
holman
316
150k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
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ҠߦͰ͖Δʂ ·ͱΊ