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
6.1k
Prometheus の label をいいかんじに使う 〜多次元データってなんなのさ〜
sugitak
3
4.5k
Prometheus 監視で変わるもの
sugitak
7
6.3k
Other Decks in Programming
See All in Programming
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
220
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
900
CSC305 Lecture 26
javiergs
PRO
0
140
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
750
Beyond ORM
77web
5
660
php-conference-japan-2024
tasuku43
0
270
Recoilを剥がしている話
kirik
5
6.7k
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
180
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
210
선언형 UI에서의 상태관리
l2hyunwoo
0
160
Zoneless Testing
rainerhahnekamp
0
120
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
460
Featured
See All Featured
Thoughts on Productivity
jonyablonski
67
4.4k
How STYLIGHT went responsive
nonsquared
95
5.2k
How to Ace a Technical Interview
jacobian
276
23k
Gamification - CAS2011
davidbonilla
80
5.1k
Side Projects
sachag
452
42k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Building Applications with DynamoDB
mza
91
6.1k
Optimising Largest Contentful Paint
csswizardry
33
3k
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Λ͏ʂʂ