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
830
Herokuの紹介
JAWS-UG 秋田支部 第一回勉強会で発表したスライドです。
Katsuyoshi Ito
June 13, 2013
Tweet
Share
More Decks by Katsuyoshi Ito
See All by Katsuyoshi Ito
irBoard(アイアールボード) について
itosoft
0
220
Ladder Drive - To start IoT for manufacturing.
itosoft
0
37
irBoardの紹介と クラウドサービスの活用
itosoft
1
320
irBoard活用可能性
itosoft
0
97
東北IT物産展2016スポンサーLT
itosoft
0
60
iQ-FとirBoardの接続設定
itosoft
0
570
iQ-RとirBoardの接続設定
itosoft
0
590
デジコミュ秋田 2015 オープニング
itosoft
0
1.5k
デジコミュ秋田 2015 LT 極上の密林
itosoft
0
380
Other Decks in Programming
See All in Programming
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
190
ONE WEDGE_company_guide
1wedge_one
0
490
Elm 0.19.0 Changes
bkuhlmann
0
490
Fast JSX: Don't clone props object #28768
yossydev
1
120
2 週間で Twitter Bot を作ってみた
contour_gara
0
520
Ruby Function Composition
bkuhlmann
1
330
Rethinking UI building strategies @ SFI 2024
letelete
0
270
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
330
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
1
110
エンターテイメント業界で利用されるAWS
demuyan
0
210
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
Fragment Composition of GraphQL
quramy
7
1k
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
514
39k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Facilitating Awesome Meetings
lara
42
5.6k
Docker and Python
trallard
34
2.7k
Building Effective Engineering Teams - LeadDev
addyosmani
28
1.8k
Practical Orchestrator
shlominoach
182
9.7k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Designing for humans not robots
tammielis
248
25k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
The Cult of Friendly URLs
andyhume
74
5.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.6k
Into the Great Unknown - MozCon
thekraken
10
990
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༵ۚ