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
540
Ladder Drive - To start IoT for manufacturing.
itosoft
0
56
irBoardの紹介と クラウドサービスの活用
itosoft
1
460
irBoard活用可能性
itosoft
0
120
東北IT物産展2016スポンサーLT
itosoft
0
88
iQ-FとirBoardの接続設定
itosoft
0
600
iQ-RとirBoardの接続設定
itosoft
0
630
デジコミュ秋田 2015 オープニング
itosoft
0
1.6k
デジコミュ秋田 2015 LT 極上の密林
itosoft
0
470
Other Decks in Programming
See All in Programming
rage against annotate_predecessor
junk0612
0
170
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
API Platform 4.2: Redefining API Development
soyuka
0
140
RDoc meets YARD
okuramasafumi
4
170
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
570
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
旅行プランAIエージェント開発の裏側
ippo012
2
930
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
パッケージ設計の黒魔術/Kyoto.go#63
lufia
3
440
Ruby Parser progress report 2025
yui_knk
1
460
🔨 小さなビルドシステムを作る
momeemt
4
690
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
3
1.5k
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
5.8k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
3k
A Tale of Four Properties
chriscoyier
160
23k
Visualization
eitanlees
148
16k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
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༵ۚ