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
猫でもできるRailsデプロイ
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ryuichiro Toyoshi
December 19, 2016
0
110
猫でもできるRailsデプロイ
電子工作の応用としてセンサーを使ってRailsをデプロイします
Ryuichiro Toyoshi
December 19, 2016
Tweet
Share
More Decks by Ryuichiro Toyoshi
See All by Ryuichiro Toyoshi
3Dプリンタを買いたくなるLT
toyoshi
3
11k
卓上水耕栽培装置の自作
toyoshi
1
540
Misocaのチーム開発のいいところ
toyoshi
4
2.6k
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.3k
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
The Language of Interfaces
destraynor
162
26k
Six Lessons from altMBA
skipperchong
29
4.2k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
280
Product Roadmaps are Hard
iamctodd
PRO
55
12k
For a Future-Friendly Web
brad_frost
183
10k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
71
Code Review Best Practice
trishagee
74
20k
The Invisible Side of Design
smashingmag
302
51k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Un-Boring Meetings
codingconduct
0
220
Transcript
猫でもできる Railsデプロイ Rails deploying that can be done by cat
おまえは誰だ
懇親会⽤のATNDのページを消した⼈。
本題
Railsのデプロイって⾯倒ですよね 4〜5年前 ⽝が全然になつかない、10匹とか⾯倒みれない 3年前〜 Passenger 2年前〜 Heroku神登場 Deploying Rails is
troublesome.
まだ楽ではない 特にWindowsでやってるひと なんらかの形でUnix環境が必要 3ヶ⽉たつと忘れる エンジニアでないとできない ちょっと⽂章を変えたいだけなのに・・・ Especially, it is troublesome
for the windows user and non-engineer.
じゃあ簡単にしよう というのが今回のLT So, Let's make it easy
Capistranoを使う winマシン+Capistrano appサーバ $rake deployでコマンド⼀発! use capistrano
でも、Unix環境にログインするのが⾯倒 But, it is necessary to use UNIX.
フックを使う winマシンでコミット appサーバ デプロイを意識しなくていい! hook To use github with hookscript
is good way. バージョン管理システム
でも、⾮エンジニアにマージとか難しい But, it is defficult for non-engineer
CIツールを使う winマシン appサーバ WebのUIからデプロイができる hookとかrpmとか CIツール(Jenkins) To use Continuous Integration
Tool is good way.
すごく簡単になった! Very easy!
でも、やっぱり猫には無理だし Webにアクセスことすら⾯倒になってきた But, its setup is troublesome
そこで So
ぼくのかんがえた 最強のデプロイ⽅法 とうじょう
物理スイッチを使う デプロイボタン Arduino winマシン (Rubyによるシリアル通信+Capistrano) appサーバ 指先ひとつでデプロイ Let's deploy with
a physical button.
多分世界⼀簡単 easiest way in the world
しかしこれでも 猫には無理じゃない? However, it is impossible for cat.
ならば If it is so
センサーを使う デプロイセンサー Arduino (Rubyによるシリアル通信) winマシン (Rubyによるシリアル通信+Capistrano) appサーバ Then, let's use
the distance sensor.
つまり It is in a word.
⼿をかざすだけ It is possible to do only by holding up
the hand.
操作写真 = マニュアル This is a complete manual. (1/1ページ)
None
本物のプログラマは Arduinoを使う (ハッカーの楽しみより引用 してません) A genuine programmer uses Arduino.
デモ 実際に⼿かざしだけでWebサイトを更新する Demo
PCは実は不要 appサーバ Arduino + イーサネットシールド リクエストの直接送信も簡単 If extend board is
used, the HTTP request can be transmitted directly.
まとめ 本当に猫でもできるデプロイシステムを構築した Arduinoのコードはアセンブラがわからなくても Rubyで書けるのでおすすめ Arduino is easy. Make your gadget
by yourself!