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
安心してフレームワークをのりかえたい
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
takanamito
August 04, 2016
Programming
1.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
安心してフレームワークをのりかえたい
表参道.rb #14 ビアガーデン風編
http://omotesandorb.connpass.com/event/36622/
LT資料です
takanamito
August 04, 2016
More Decks by takanamito
See All by takanamito
ActiveModel::Attributes APIとSwaggerでRailsのAPIレスポンスに型を持ち込む
takanamito
0
680
ドキュメントとテストのないプロジェクトを引き継ぐ
takanamito
2
3.6k
Siriに身の回りのお世話をしてもらう
takanamito
0
7k
PHPで運用中のサービスをRubyに切り替える
takanamito
0
5.5k
HLSでやっていく 動画ストリーミング配信
takanamito
0
2.6k
あんしん大規模リプレースサポート
takanamito
1
1.8k
Other Decks in Programming
See All in Programming
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.7k
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
510
App Intentsのビルドプロセスを支える技術
kntkymt
0
490
速習iPhone Duo対応
yuukiw00w
2
920
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
4
400
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
370
setup-vp GitLab対応の裏側
naokihaba
0
140
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
290
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
330
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
240
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
260
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
470
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
400
Bash Introduction
62gerente
615
220k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
330
Exploring anti-patterns in Rails
aemeredith
4
520
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Believing is Seeing
oripsolob
1
240
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
270
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
450
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
260
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Transcript
҆৺ͯ͠ ϑϨʔϜϫʔΫΛ ͷΓ͔͍͑ͨ
ࣗݾհ • @takanamito • גࣜձࣾ Speee ৽ଔ3 • ւ֎ϝσΟΞࣄۀ෦ •
ւ֎͚ͷਓࡐܥϝσΟΞ࡞ͬͯ·͢
ւ֎ϝσΟΞ 2015 • ඦສPV / ݄ • 2΄ͲFuelPHP͕Քಇ • 1action
100~200ߦͷcontroller͕ෳ • ແବͳϖʔδ͕ͨ͘͞Μ
None
FuelPHP -> Ruby on Rails
ϦϓϨʔεཁ݅ • FuelPHPΛ٫͍ͨ͠ • ϚελσʔλΛ৽͍ͨ͠ • URLΛ৽͍ͨ͠ • σβΠϯϦχϡʔΞϧ͍ͨ͠
͍͢͝ා͍ • ϑϨʔϜϫʔΫ͕มΘΔ • Ϛελσʔλ͕มΘΔ • 10ສҎ্ͷURL͕มΘΔ • چURL͔Β৽URLʹਖ਼͘͠301ϦμΠϨΫτ͠ ͳ͍ͱ͍͚ͳ͍
ࣄલݕূ • ಛʹॏཁͳϦμΠϨΫτॲཧͷ ϩδοΫͱσʔλͷςετ • ෛՙݕূ • ΞϓϦέʔγϣϯશମͷಈ࡞ݕূ
kage • https://github.com/cookpad/kage • γϟυϓϩΩγαʔόʔͷgem • cookpadࣾ • ຊ൪ͷτϥϑΟοΫΛෳ͠։ൃαʔόʔʹྲྀ͢
None
nginxͰϩʔυόϥϯε upstream backend { server 127.0.0.1:9000 weight=9; server 10.0.0.1:8000; }
kage Kage::ProxyServer.start do |server| server.port = 8000 server.host = '0.0.0.0'
server.add_master_backend(:production, 'localhost', 80) server.add_backend(:sandbox, 'localhost', 80) server.on_select_backends do |request, headers| if request[:method] == 'GET' [:production, :sandbox] else [:production] end end ~~ தུ ~~ end def compare(production_res, sandbox_res, url) # ͜ͷลͰresponseݟͯϩάग़ͨ͠Γ͢Δ end
kageͷϩά IUUQTUBUVTʹ͕ࠩ͋Δ63-Λग़ྗ
ͬͯΑ͔ͬͨ͜ͱ • ຊ൪τϥϑΟοΫͰࣄલʹݕূͰ͖Δ • ςετ࿙ΕʹରԠՄೳ • ७ਮͳςετέʔεͷ࿙Ε • ϩδοΫ߹ͬͯͯσʔλ͕͓͔͍͠