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
deploy.rb をきれいにするためにしたいくつかのこと
Search
sugitak
August 15, 2016
Programming
0
88
deploy.rb をきれいにするためにしたいくつかのこと
2016/08/15 西日暮里.rb の発表資料です。治安が悪くなりがちな Capistrano の deploy.rb をきれいに保つために実施したことを共有しています。
sugitak
August 15, 2016
Tweet
Share
More Decks by sugitak
See All by sugitak
デプロイ再考2024/reconsidering-deploy-in-2024
sugitak
22
6k
Prometheus の label をいいかんじに使う 〜多次元データってなんなのさ〜
sugitak
3
4.4k
Prometheus 監視で変わるもの
sugitak
7
6.3k
Other Decks in Programming
See All in Programming
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
330
Macとオーディオ再生 2024/11/02
yusukeito
0
160
Why Spring Matters to Jakarta EE - and Vice Versa
ivargrimstad
0
970
Googleのテストサイズを活用したテスト環境の構築
toms74209200
0
270
OpenTelemetryでRailsのパフォーマンス分析を始めてみよう(KoR2024)
ymtdzzz
4
1.5k
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
210
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
150
WEBエンジニア向けAI活用入門
sutetotanuki
0
300
qmuntal/stateless のススメ
sgash708
0
120
CSC305 Lecture 13
javiergs
PRO
0
130
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
160
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
2
1.7k
Featured
See All Featured
Side Projects
sachag
452
42k
RailsConf 2023
tenderlove
29
880
Writing Fast Ruby
sferik
626
61k
Fireside Chat
paigeccino
32
3k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Optimizing for Happiness
mojombo
376
69k
Navigating Team Friction
lara
183
14k
Facilitating Awesome Meetings
lara
49
6k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Practical Orchestrator
shlominoach
186
10k
Transcript
EFQMPZSCΛ͖Ε͍ʹ͢Δ ͨΊʹ͍͔ͨͭ͘͠ͷ͜ͱ !ཬSC
ࣗݾհ w TVHJUBL w GSFFFͷΠϯϑϥΤϯδχΞ w લ৬Ͱ1BB4Λ࡞͍ͬͯ·ͨ͠
None
ຊۀ wσϓϩΠ ʜͷͭΓ
ͯ͞ɺΈͳ͞Μ
$BQJTUSBOP ͬͯ·͔͢ʁ
ศརͰ͢ΑͶ $BQJTUSBOP
Ͱɺ͜͏ ࢥ͍ͬͯ·ͤΜ͔
lEFQMPZSCz ͲΜͲΜԚ͘ͳΔ
ͱ͍͏͜ͱͰ ຊͷ͓
EFQMPZSCͷ ্࣏҆ ๑w Aŷw و✧
͜Ε·Ͱ ͖ͬͯͨ͜ͱΛ ৼΓฦͬͯΈͨ
EFQMPZSC͕Ԛ͘ͳͬͨ ݪҼΛྨͯ͠Έͨ w ͳΜͰ$BQJTUSBOPܦ༝Ͱ࣮ߦͯ͠͠·͏ w σϑΥϧτλεΫΛͲΜͲΜ্ॻ͖ͯ͠͠·͏ PSશ͘Θͳ͍ w ΞϓϦͷίϯςΩετ͕ԕ͍
ͳΜͰ$BQJTUSBOPප w ʮϗετʹ44)ͯ͠ίϚϯυ࣮ߦͤ͞Δศརπʔ ϧʯͱଊ͑ΔͱɺͳΜͰΒͤͨ͘ͳΔ w /HJOYSFTUBSU w લͷϓϩηεʹγάφϧૹ৴ w ূ໌ॻߋ৽
w DSPOొ w BQUHFUVQEBUFBQUHFUVQHSBEF
ରࡦ w ΠϯϑϥλεΫ$BQJTUSBOPͰΒͳ͍ ͱ͍͏ڧ͍ҙࢤΛ࣋ͭ w BOTJCMF DIFG GBCSJDΛదʹ͏ w ඞཁ͕͋Δͷʹ͍ͭͯɺEFQMPZSCͰͳ
͘MJCDBQJTUSBOPUBTLT SCʹॻ͘ w ϑΝΠϧ໊ͰྨͰ͖Δ͠ɺ࠶ར༻͍͢͠
ʮσϑΥϧτλε Ϋ͕͍ʹ͍͘ʯ
σϑΥϧτλεΫ͕ ͍ʹ͍͘ w ແվͷDBQQSPEVDUJPOEFQMPZΛ͍ͬͯΔ ਓɺͨͿΜ͍ͳ͍
σϑΥϧτλεΫ͕ͦͷ·· ͑ͳ͍ཧ༝ શαʔόͰCVOEMFJOTUBMM BTTFUTQSFDPNQJMFΛ࣮ߦ͠ ͯ͠·͏ w ແବʹQSPEVDUJPOαʔόͷϦιʔε͏ w ۉҰͳσϓϩΠ͕Ͱ͖ͳ͍
શαʔόͰαʔόͷSFTUBSUΛ࣮ߦͯ͠͠·͏ w SPMMJOHVQEBUFΛௐ͠ͳ͍ͱαʔϏε͕མͪΔ HJU TWOͷѻ͍͕͍·͍ͪ
Կ͕ى͜Δ͔ w λεΫΛҰͭͻͱͭॻ͖͑Δʁ w શ෦ॻ͖͑ͨ΄͏ָ͕Ͱʂ
ରࡦ w $BQJTUSBOPͷಈ࡞Λཧղ͠Α͏
ͳͥཧղ͢Δͱ͍͍ͷʁ w $BQJTUSBOPͷઃܭϑϨʔϜϫʔΫے͕͍͍ͷ Ͱɺ࠶ར༻Ͱ͖Δ෦ͨ͠΄͏͕͍͍ w ࣮ࡍɺ$BQJTUSBOP෦తʹ࠶ར༻͍͢͠ ઃܭʹͳ͍ͬͯΔ
w λεΫͷॱ൪͕ఆٛࡁ Έɻैͬͨ΄͏͕͖Ε ͍ w ϑΝΠϧͷϦϯΫɺ ݎ࣮ͳλεΫͦͷ· ·͍͍ͨ
4$. 4$.ʹؔ࿈ͨ͠෦͚ͩ ผίʔυʹ͞Ε͍ͯΔɻ ΞεϖΫτతʁ ˞$BQJTUSBOP࣌ͷίʔυͰ͢ɻ͔Β͞ΒʹมΘΓ·ͨ͠
ʮΞϓϦͷจ຺͕ ԕ͍ʯ
ΞϓϦͷจ຺͕ԕ͍ w 3BJMTΞϓϦॻ͘ͷָ͚ͩͲɺಈ͔͢ͷ ͪΐͬͱ͍ͨΜ w $BQJTUSBOPίϚϯυ͝ͱʹTTIுͬͯΔʜ w ΞϓϦจ຺ʹೖΓʹ͍͘ʂ
PATH=~/bin:/opt/bin:$PATH # configure rbenv source ~/.bashrc cd work/rails bundle exec
rails s
PATH=~/bin:/opt/bin:$PATH # configure rbenv source ~/.bashrc cd work/rails bundle exec
rails s PATH=~/bin:/opt/bin:$PATH configure rbenv && source ~/.bashrc && cd work/rails && bundle exec rails s
͑ɺ͜Εશ෦ʹͦΕॻ͘ͷʜ w SBJMTT w SBLFECNJHSBUF w SBLFXPSLFSTUBSU w SBJMTXPSLFS w
DSPO͔Βͷݺͼग़͠ w ʜʜ
BQQEP
PATH=~/bin:/opt/bin:$PATH # configure rbenv source ~/.bashrc cd work/rails bundle exec
rails s PATH=~/bin:/opt/bin:$PATH configure rbenv && source ~/.bashrc && cd work/rails && bundle exec rails s
PATH=~/bin:/opt/bin:$PATH # configure rbenv source ~/.bashrc cd work/rails bundle exec
rails s PATH=~/bin:/opt/bin:$PATH configure rbenv && source ~/.bashrc && cd work/rails && bundle exec rails s appdo rails s
͋ͱ ઃఆϑΝΠϧ dBQQEPDPOG ʹॻ͍ͯ͠·͏
DBUdBQQEPDPOG <EFGBVMU> TPVSDF<ldCBTISDz> CFGPSF<lDEXPSLSBJMTz> QSFpYlCVOEMFFYFDz <EFGBVMUFOW> 1"5)ldCJOPQUCJO1"5)z
QJQJOTUBMMBQQEP
$BQJTUSBOP DSPOUBC͕ Θ͔Γ͘͢ ͳΔΑʂ
Ҏ্Ͱ͢ʂ
EFQMPZSCΛ͖Ε͍ʹ͢Δ ͨΊʹͬͨ͜ͱ w EFQMPZSCʹมͷTFU͚ͩஔ͘ w ίʔυMJCDBQJTUSBOPҎԼʹॻ͘ w ΠϯϑϥλεΫGBCSJDBOTJCMFʹ͍ग़͢ w ΞϓϦ͔ΒίʔυΛ͢Δ
w $BQJTUSBOPΛཧղ͢ΔɻGSBNFXPSLSCͱ͖߹͏ w BQQEPΛ͏ʂʂ