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
840
Herokuの紹介
JAWS-UG 秋田支部 第一回勉強会で発表したスライドです。
Katsuyoshi Ito
June 13, 2013
Tweet
Share
More Decks by Katsuyoshi Ito
See All by Katsuyoshi Ito
irBoard(アイアールボード) について
itosoft
0
340
Ladder Drive - To start IoT for manufacturing.
itosoft
0
45
irBoardの紹介と クラウドサービスの活用
itosoft
1
390
irBoard活用可能性
itosoft
0
100
東北IT物産展2016スポンサーLT
itosoft
0
69
iQ-FとirBoardの接続設定
itosoft
0
580
iQ-RとirBoardの接続設定
itosoft
0
610
デジコミュ秋田 2015 オープニング
itosoft
0
1.5k
デジコミュ秋田 2015 LT 極上の密林
itosoft
0
420
Other Decks in Programming
See All in Programming
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
Jakarta EE meets AI
ivargrimstad
0
580
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
610
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
Better Code Design in PHP
afilina
PRO
0
130
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
役立つログに取り組もう
irof
28
9.6k
Featured
See All Featured
A better future with KSS
kneath
238
17k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Being A Developer After 40
akosma
87
590k
Facilitating Awesome Meetings
lara
50
6.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Writing Fast Ruby
sferik
627
61k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
KATA
mclloyd
29
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
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༵ۚ