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
Herokuの紹介
Search
Katsuyoshi Ito
June 13, 2013
Programming
1
860
Herokuの紹介
JAWS-UG 秋田支部 第一回勉強会で発表したスライドです。
Katsuyoshi Ito
June 13, 2013
Tweet
Share
More Decks by Katsuyoshi Ito
See All by Katsuyoshi Ito
irBoard(アイアールボード) について
itosoft
0
480
Ladder Drive - To start IoT for manufacturing.
itosoft
0
53
irBoardの紹介と クラウドサービスの活用
itosoft
1
440
irBoard活用可能性
itosoft
0
120
東北IT物産展2016スポンサーLT
itosoft
0
81
iQ-FとirBoardの接続設定
itosoft
0
590
iQ-RとirBoardの接続設定
itosoft
0
620
デジコミュ秋田 2015 オープニング
itosoft
0
1.6k
デジコミュ秋田 2015 LT 極上の密林
itosoft
0
460
Other Decks in Programming
See All in Programming
生成AIで日々のエラー調査を進めたい
yuyaabo
0
610
Select API from Kotlin Coroutine
jmatsu
1
180
LINEヤフー データグループ紹介
lycorp_recruit_jp
0
760
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
280
ASP.NETアプリケーションのモダナイズ インフラ編
tomokusaba
1
390
関数型まつりレポート for JuliaTokai #22
antimon2
0
130
事業戦略を理解してソフトウェアを設計する
masuda220
PRO
22
6.2k
deno-redisの紹介とJSRパッケージの運用について (toranoana.deno #21)
uki00a
0
130
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
ReadMoreTextView
fornewid
1
450
Perplexity Slack Botを作ってAI活用を進めた話 / AI Engineering Summit プレイベント
n3xem
0
670
カクヨムAndroidアプリのリブート
numeroanddev
0
430
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Language of Interfaces
destraynor
158
25k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
KATA
mclloyd
29
14k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Why Our Code Smells
bkeepers
PRO
337
57k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
How GitHub (no longer) Works
holman
314
140k
RailsConf 2023
tenderlove
30
1.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Transcript
Herokuͷհ JAWS-UGळాࢧ෦ɹୈ̍ճษڧձ ༗ݶձࣾҏ౻ιϑτσβΠϯ ҏ౻উྑ 2013/6/13 136݄14༵ۚ
ࣗݾհ • ༗ݶձࣾҏ౻ιϑτσβΠϯ(େઋࢢ) • ҏ౻উྑ • ੍ޚܥιϑτ • iOSΞϓϦ •
Ruby On Rails 136݄14༵ۚ
AWS • HerokuͰؒతʹར༻ • S3ը૾อଘઌͰར༻ 136݄14༵ۚ
Herokuͱʁ • ۀ 2007 Ruby On Rails ։ൃڥ(IDE) • ϓϥοτϑΥʔϜɾαʔϏε(PaaS)
• Web ApplicationͷϓϥοτϑΥʔϜ • 2010 salesforce.comʹΑΔങऩ • Ceder(γμʔ) ελοΫ • PythonɺJVM ݴޠɺNode.jsɺetc 136݄14༵ۚ
ͪͦ͝͏͞·Ͱͨ͠ 136݄14༵ۚ
136݄14༵ۚ
136݄14༵ۚ
136݄14༵ۚ
Herokuʹ •Rubyͷ͍͢͝ਓ͕ • ·ͭͱ͞Μ͡ΊRubyͷίϛολ ʔ͕ࢁ 136݄14༵ۚ
SNSͱͷ౷߹ • Facebook • mixi 136݄14༵ۚ
Background • AWSͷEC2͓ΑͼEBSɺS3Λར༻ 136݄14༵ۚ
HerokuΛ͏४උ • herokuΞΧϯτ࡞ • Heroku ToolbeltΛΠϯετʔϧ • herokuίϚϯυͰϩάΠϯ https://devcenter.heroku.com/articles/quickstart 136݄14༵ۚ
herokuͷDeploy • ϩʔΧϧ • ΞϓϦ࡞ • gitͰཧ • ಈ࡞֬ೝOK •
HerokuʹΞϓϦ࡞ • gitͰpush • herokuίϚϯυͰϝϯςφϯε 136݄14༵ۚ
ΞϓϦ࡞ (Ruby On Rails) $ rails new diary create create
README.rdoc create Rakefile . . . create vendor/plugins/.gitkeep run bundle install 136݄14༵ۚ
gitͰཧ $ cd diary $ git init Initialized empty Git
repository in /Users/ISD/ Documents/community/aws-akita/diary/.git/ $ git add . $ git commit -m "initial import" -a [master (root-commit) 3adc05c] initial import 37 files changed, 1204 insertions(+) create mode 100644 .gitignore . . 136݄14༵ۚ
ϩʔΧϧͰಈ࡞֬ೝ $ rails g scaffold article title:string body:text $ rake
db:migrate $ vi config/routes.rb root :to => 'articles#index' $ rm public/index.html $ rails s 136݄14༵ۚ
ςετ http://localhost:3000 136݄14༵ۚ
Postgres $ vi Gemfile group :production do gem 'pg' end
group :development, :test do gem 'sqlite3' end $ bundle 136݄14༵ۚ
git commit $ git add . $ git commit -m
"ϩʔΧϧͰಈ࡞֬ೝ͠· ͨ͠" -a 136݄14༵ۚ
HerokuΞϓϦ࡞ $ heroku apps:create Creating serene-peak-3944... done, stack is cedar
http://serene-peak-3944.herokuapp.com/ |
[email protected]
:serene-peak-3944.git Git remote heroku added 136݄14༵ۚ
Deploy $ git push heroku master . -----> Ruby/Rails app
detected . -----> Compiled slug size: 9.4MB -----> Launching... done, v6 http://serene-peak-3944.herokuapp.com deployed to Heroku To
[email protected]
:serene-peak-3944.git * [new branch] master -> master 136݄14༵ۚ
Configuration $ heroku run rake db:migrate $ heroku config:add TZ=Asia/Tokyo
136݄14༵ۚ
ಈ࡞֬ೝ http://serene- peak-3944.herokuapp.com 136݄14༵ۚ
Add-ons • Data Store • Mobile • Search • Logging
• Email and SMS • Analytics • Payments • etc ... https://addons.heroku.com 136݄14༵ۚ
Databaseϓϥϯ ϓϩϑΣογϣφϧͷͨΊͷ࣮ફHerokuೖ6.2.1ষΑΓ 136݄14༵ۚ
Dynos 136݄14༵ۚ
·ͱΊ ϓϩϑΣογϣφϧͷͨΊͷ࣮ફHerokuೖ9.2.1ষΑΓ 136݄14༵ۚ
ୡਓग़൛ձΑΓ http://tatsu-zine.com/books/heropro 136݄14༵ۚ
͝ਗ਼ௌ͋Γ͕ͱ͏͝ ͍͟·ͨ͠ 136݄14༵ۚ