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.7k
開発合宿@京都 /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
90k
一休での開発における改善の取組み /devops-at-ikyu
kensuketanaka
13
10k
一休.com における改善事例のご紹介 /ikyu-storage-improvement
kensuketanaka
6
11k
一休.comにおけるデプロイフローと自動化 /ikyu-deploy-flow
kensuketanaka
9
8.7k
ikyu-frontend
kensuketanaka
21
7.2k
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
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
2.1k
AppRouterを用いた大規模サービス開発におけるディレクトリ構成の変遷と問題点
eiganken
1
440
Androidアプリの One Experience リリース
nein37
0
1.2k
QA環境で誰でも自由自在に現在時刻を操って検証できるようにした話
kalibora
1
140
React 19でお手軽にCSS-in-JSを自作する
yukukotani
5
560
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.4k
traP の部内 ISUCON とそれを支えるポータル / PISCON Portal
ikura_hamu
0
180
DevFest - Serverless 101 with Google Cloud Functions
tunmise
0
140
.NETでOBS Studio操作してみたけど…… / Operating OBS Studio by .NET
skasweb
0
120
為你自己學 Python
eddie
0
520
AHC041解説
terryu16
0
380
Alba: Why, How and What's So Interesting
okuramasafumi
0
210
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Statistics for Hackers
jakevdp
797
220k
Code Review Best Practice
trishagee
65
17k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Faster Mobile Websites
deanohume
305
30k
Music & Morning Musume
bryan
46
6.3k
Why Our Code Smells
bkeepers
PRO
335
57k
Documentation Writing (for coders)
carmenintech
67
4.5k
Unsuck your backbone
ammeep
669
57k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
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໊) •
ژͰ༠͕ଟ͗ͯ͢੨य़શ෦͔͚Δͷ͕Ή͔͍ͣ͠ • ·ͨΓ·͠ΐ͏
ژΛָ͠Ή
ͪ;ΔΛ؍Δ
͋ͱ