Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rails 開発環境としての Windows という選択肢
Search
tikkss
July 14, 2018
Programming
510
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rails 開発環境としての Windows という選択肢
tikkss
July 14, 2018
Other Decks in Programming
See All in Programming
ソフトウェアラスタライザ
fadis
1
800
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
Intent as Code
shoppingjaws
6
730
Security issues being discussed on Web Platforms
petamoriken
0
550
Press start. Python's next generation.
willingc
PRO
3
330
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
110
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
190
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
150
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
180
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
280
一参加者から『中の人』へ 〜全通PHPerがブースに立って学んだ、カンファレンスを100倍楽しむコツ〜
wp_daisuke
0
140
信頼性の目標を誰も求めてない
shubox
0
500
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
108
250k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Deep Space Network (abreviated)
tonyrice
0
300
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
530
WENDY [Excerpt]
tessaabrams
13
39k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
520
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Everyday Curiosity
cassininazir
0
310
Transcript
Rails ։ൃڥͱͯ͠ͷ Windows ͱ͍͏બࢶ Rails Developers Meetup Day 3 Extreme
2018/7/14 উ෦ ษ a.k.a. @tikkss
ࣗݾհ • GitHub, Twitter: @tikkss • ᰤࢠ͕ר͚Δ Rails ΤϯδχΞ •
Rails 2 ܥͷࠒ͔Β Rails Ͱडୗ։ൃͯ͠·͢ • from ౡࠜݝग़Ӣࢢ
None
None
None
Unix ܥ OS Ͱͷ;ͭ͏Λ Windows ʹ
;ͭ͏ͱʁ
;ͭ͏ਓʹΑͬͯҧ͏
Rails ͷ;ͭ͏
CoC ઃఆΑΓن
Unix ܥ OS ͷ;ͭ͏Λ Windows ʹऔΓೖΕΕ ָͰ͖ΔͷͰʁ
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
Windows Ͱશͯͷ ”;ͭ͏” Λຬͨ͢͜ͱͰ͖ͳ͔ͬͨ
ͦΕ WSL Ͱग़དྷΔΑ
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
1. Zsh, fish, Tmux ͷڧྗͳCLI πʔϧ • ύοέʔδϚωʔδϟͰ;ͭ͏ʹΠϯετʔ ϧͰ͖ΔʢUbuntu ͷ߹ʣ
• $ sudo apt-get install zsh fish tmux • WSL ͱ Unix ܥ OS ͷ dotfiles Λڞ༗Ͱ͖Δ
2. ghq, peco/fzf ΛͬͨϩʔΧϧ ϦϙδτϦͷ౷Ұతɾޮతͳཧ • Windows -> WSL: ϑΝΠϧࢀরɾॻࠐɾ࣮ߦɹඇਪ
• WSL -> Windows: ϑΝΠϧࢀরɾॻࠐɾ࣮ߦɹOK • Windows ͷϑΝΠϧ /mnt/c/ ʹϘϦϡʔϜϚϯτ͞ΕΔ • Windows ͷϗʔϜσΟϨΫτϦԼʹϩʔΧϧϦϙδτϦΛ ஔ • WSL ͷϗʔϜσΟϨΫτϦʹ Windows ͷϗʔϜσΟϨΫτϦͷ ϩʔΧϧϦϙδτϦͷγϯϘϦοΫϦϯΫΛషΔ
γϯϘϦοΫϦϯΫΛషΔ $ ln -s /c/Users/xxxxx/src ~/src # => xxxxx ෦ҙͷϢʔβ໊
3. Docker Compose ͷίϚ ϯυҰͭͰ։ൃڥ্ཱͪ͛ • 2ͭͷน • Linux σʔϞϯ͕ಈ͔ͳ͍
• Docker Compose ͕ಈ͔ͳ͍
Linux σʔϞϯ͕ಈ͔ͳ͍
Linux σʔϞϯ͕ಈ͔ͳ͍ • Docker daemon ͕ಈ͔ͳ͍ • Docker Client
WSL ͷ·· • Docker daemon Docker for Windows Λ ͏
Linux σʔϞϯ͕ಈ͔ͳ͍ • Docker daemon ͕ಈ͔ͳ͍ • Docker Client
WSL ͷ·· • Docker daemon Docker for Windows Λ͏ • ࠓʢ2018ʣͷय़͔ΒσʔϞϯ͕ಈ͘Α͏ʹͳͬͨ • WSL ͚ͩͰ Docker ͕ಈ͘ʢୠ͠Ұ෦ͷVerݶఆʣ
Docker Compose ͕ಈ͔ͳ͍
Docker Compose ͕ಈ͔ͳ͍ • Docker for Windows ͷ Docker daemon
ͱ WSL ͷύεͷϛεϚονͰɺϘϦϡʔϜͷ૬ ରύεࢦఆ͕ಈ͔ͳ͍ • Docker for Windows: /c/ • WSL: /mnt/c/
Docker Compose ͕ಈ͔ͳ͍ • Docker for Windows ͷ Docker daemon
ͱ WSL ͷύεͷ ϛεϚονͰɺϘϦϡʔϜͷ૬ରύεࢦఆ͕ಈ͔ͳ͍ • Docker for Windows: /c/ • WSL: /mnt/c/ • ࠓʢ2018ʣͷय़͔Β WSL ͷϚϯτύεΛม͑ΕΔ • WSL /c/ ʹมߋ͢ΕϛεϚονղܾ
/etc/wsl.conf $ sudo vim /etc/wsl.conf [automount] root = / #
=> ઃఆޙɺWindowsΛ࠶ىಈ $ ln -s /c/Users/xxxxx/src ~/src # => લड़ͷϗʔϜσΟϨΫτϦͷγϯϘϦοΫϦϯΫ ͷύε͔Β /mnt ΛऔΔ
None
None
Unix ܥ OS Ͱͷ;ͭ͏Λ Windows ʹ
·ͱΊ • ;ͭ͏ਓʹΑͬͯೝ͕ࣝҧ͏ • ;ͭ͏ͷೝࣝΛ͋ΘͤΔͱ Rails ͷΑ͏ʹָͰ͖Δ • WSL ʹΑͬͯ
Unix ܥ OS Ͱͷ։ൃϑϩʔͷ “;ͭ͏” Λɺ Windows ʹऔΓೖΕΔ͜ͱ͕Ͱ͖ͨ • “;ͭ͏” ͷϨʔϧʹΕͨͷͰ Unix ܥ OS ͱ Windows ྆ํͰര։ൃͰ͖Δͧ