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
Ryuichiro Toyoshi
December 19, 2016
0
100
猫でもできるRailsデプロイ
電子工作の応用としてセンサーを使ってRailsをデプロイします
Ryuichiro Toyoshi
December 19, 2016
Tweet
Share
More Decks by Ryuichiro Toyoshi
See All by Ryuichiro Toyoshi
3Dプリンタを買いたくなるLT
toyoshi
3
1.2k
卓上水耕栽培装置の自作
toyoshi
0
330
Misocaのチーム開発のいいところ
toyoshi
4
2.5k
Featured
See All Featured
Building Effective Engineering Teams - LeadDev
addyosmani
25
1.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
124
32k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
Pencils Down: Stop Designing & Start Developing
hursman
115
11k
BBQ
matthewcrist
78
8.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
319
23k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
1
3.3k
Build The Right Thing And Hit Your Dates
maggiecrowley
23
1.9k
What's in a price? How to price your products and services
michaelherold
236
11k
Documentation Writing (for coders)
carmenintech
59
3.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
Side Projects
sachag
451
41k
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!