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
gopls を改造したら開発生産性が高まった
satorunooshie
8
270
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
3
310
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.5k
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
430
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
140
外部システム連携先が10を超えるシステムでのアーキテクチャ設計・実装事例
kiwasaki
1
240
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
100
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
5
3.6k
破壊せよ!データ破壊駆動で考えるドメインモデリング / data-destroy-driven
minodriven
16
4.2k
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
470
役立つログに取り組もう
irof
27
9k
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
180
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
810
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
505
140k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
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Λ͏ʂʂ