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
89
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
CSC509 Lecture 13
javiergs
PRO
0
110
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
5
1.5k
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
170
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
100
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
480
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
Contemporary Test Cases
maaretp
0
140
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
250
Jakarta EE meets AI
ivargrimstad
0
640
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
8.9k
A designer walks into a library…
pauljervisheath
204
24k
Done Done
chrislema
181
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Statistics for Hackers
jakevdp
796
220k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Code Review Best Practice
trishagee
64
17k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Building Applications with DynamoDB
mza
90
6.1k
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Λ͏ʂʂ