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
開発合宿@京都 /hack-camp-kyoto
Search
kentana20
August 13, 2016
Programming
0
3.6k
開発合宿@京都 /hack-camp-kyoto
京都で開催した開発合宿の成果発表資料です
kentana20
August 13, 2016
Tweet
Share
More Decks by kentana20
See All by kentana20
一休.comでの開発組織改善の取り組みとこれから /improve-ikyu-devlove-x
kensuketanaka
24
37k
株式会社一休 会社紹介資料 / introduce-ikyu
kensuketanaka
15
87k
一休での開発における改善の取組み /devops-at-ikyu
kensuketanaka
13
9.9k
一休.com における改善事例のご紹介 /ikyu-storage-improvement
kensuketanaka
6
11k
一休.comにおけるデプロイフローと自動化 /ikyu-deploy-flow
kensuketanaka
9
8.6k
ikyu-frontend
kensuketanaka
21
7.1k
sushi_route_2015
kensuketanaka
0
190
qiita meetup#12
kensuketanaka
4
71k
cross_2015_trave_ec
kensuketanaka
1
3.4k
Other Decks in Programming
See All in Programming
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
580
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
330
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
as(型アサーション)を書く前にできること
marokanatani
9
2.6k
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
250
距離関数を極める! / SESSIONS 2024
gam0022
0
280
CSC509 Lecture 09
javiergs
PRO
0
140
Featured
See All Featured
Teambox: Starting and Learning
jrom
133
8.8k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
GitHub's CSS Performance
jonrohan
1030
460k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Building Your Own Lightsaber
phodgson
103
6.1k
Music & Morning Musume
bryan
46
6.2k
Happy Clients
brianwarren
98
6.7k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Transcript
։ൃ߹॓Ռൃද ݹయ෦ ݉ ͔Δͨ෦ @kentana20
Agenda • ߹॓Ͱͷඪ • ͬͨ͜ͱ • σϞ • ·ͱΊ
߹॓Ͱͷඪ • ࣗࣾϖʔδΛMiddlemanԽͯ͠Ϟμϯʹ • ژΛָ͠Ή • ͪ;ΔΛ؍Δ • ʹߦ͘
Middleman • Rubyͷ੩తαΠτδΣωϨʔλ • ςϯϓϨʔτΤϯδϯ • ։ൃ༻αʔόʹͳΔ • ෦ςϯϓϨʔτ͑Δ •
ྨࣅ: Jekyll, HUGO
ࣗࣾϖʔδ
എܠ • ࣗࣾϖʔδ( http://www.ikyu.co.jp )ͷӡ༻ ੜͷHTMLΛ࡞ͬͯमਖ਼͍ͯͨ͠ • ϖʔδͷߋ৽FTPͰπϥ͍ • ྨࣅϖʔδίϐϖͰ
എܠ2 • ͱ͋Δͷձ • @naoya ʮ࠾༻ϖʔδͬͯͲ͏ͬͯϝϯςͯ͠Δͷʁʯ • @kentana20 ʮFTPͰμϯϩʔυͯ͠मਖ਼ͯ͠ΞοϓͰ͢Ͷʯ •
@naoya ʮͦΕπϥ͍ɻ͏ͪΐͬͱϚγʹ͍ͨ͠Ͷʯ • @kentana20 ʮͰ͢Ͷʯ • @naoya ʮMiddlemanͱ͔͓͏Αʯ • @kentana20 ʮ;Ή;Ήʯ
ελʔτ • Middleman৮ͬͨ͜ͱͳ͍ • Railsܦݧ͋Δ • ࣗࣾϖʔδͷFTPΞΧϯτ࣋ͬͯΔ
ಋೖͱॳظԽ $ gem install middleman $ middleman init ikyucorp
Ϗϧυ $ middleman build
αʔόىಈ $ middleman server
σΟϨΫτϦߏ ੜ͞ΕΔ ੩తϑΝΠϧbuildԼʹ Ϗϧυલͷerb, sassϑΝ ΠϧͳͲsourceԼʹ
ศརͳ#1 • ෦ςϯϓϨʔτ • ϔομɺϑολͳͲڞ௨෦Λ෦Խ • ෦ςϯϓϨʔτͷม͠(locals)Մೳ <%= partial 'partials/nav_top'
%> <div class="wrapper"> <%= partial 'partials/head_top' %>
ศརͳ#2 • LiveReload • ϑΝΠϧΛॻ͖͑ͨλΠϛϯάͰϒϥβΛউखʹ Ϧϩʔυͯ͘͠ΕΔ $ middleman server --livereload
ࣗࣾϖʔδMiddlemanԽ • ରϖʔδ http://www.ikyu.co.jp/recruit/ • ϨΠΞτɺ෦ςϯϓϨʔτͳͲͰڞ௨Խͭͭ͠ MiddlemanԽ • Γ࢝Ί͔ͯΒ1͘Β͍ͰͰ͖ͨ
HerokuʹσϓϩΠ • αΠτ࡞Δ • Procfile • MiddlemanͷϏϧυͱىಈΛॻ͚ͩ͘ web: bundle exec
middleman build && middleman server -p $PORT
Circle CIͰࣗಈԽ • HerokuͷσϓϩΠΛࣗಈԽ • master mergeͰൃಈ machine: timezone: Asia/Tokyo
ruby: version: 2.3.1 test: override: - echo "test" deployment: production: branch: master heroku: appname: ikyucorp-middleman testͷهड़ඍົ… ͚Ͳ੩తαΠτͳͷͰ…
Demo
ΓΔ͜ͱ • HerokuͰΔͷ͔ / ͘͞Βͷ··͔ΛܾΊΔ • HerokuͳΒͦͷ··ɺ͘͞ΒͳΒσϓϩΠํࣜΛม͑Δ • middleman-deploy ͱ͍͏Gem͕FTPͰͷϦϦʔεʹ
ରԠ͍ͯ͠Δ • HerokuͳΒ /recruit/ ԼͷΞΫηεΛϦμΠϨΫτ͞ ͤΔ
Middlemanॴײ • Middleman • Rails͔Β੩తαΠτ࡞Δػೳ͕ൈ͖ग़͞ΕͯΔײ͡Ͱ ͍উख͕͍͍ • ϏϧυɺσϓϩΠϥΫ • ͜ΕͳΒσβΠφʔʹͬͯΒ͑Δͱࢥ͏
• ૣ͘ΕΑ͔ͬͨɻɻ
߹॓ॴײ • ߹ָ͍॓͠ • ·ͱ·ͬͨ࣌ؒͰՌग़͍͢͠ • ࠓճਓ૿͑ͯخ͍͠(6໊ -> 9໊) •
ژͰ༠͕ଟ͗ͯ͢੨य़શ෦͔͚Δͷ͕Ή͔͍ͣ͠ • ·ͨΓ·͠ΐ͏
ژΛָ͠Ή
ͪ;ΔΛ؍Δ
͋ͱ