SlideShare a Scribd company logo
1 of 24
Herokuを使ってみた。
2013/06/01
13年6月2日日曜日
はじめに簡単に
自己紹介から!!
13年6月2日日曜日
名前は
•植木 浩次(うえき こうじ)
13年6月2日日曜日
• 岡山駅裏に住んでいます。
• 仕事は、山崎パン系列の食品会社で働
いています。
• プログラムは、初心者です。未熟なと
ころが多いです。object-c, ruby, 最近、
岡山でPython勉強会があり、気になっ
ています。
13年6月2日日曜日
Herokuとは
• さまざまなWebアプリのプログラムを実行
するための環境をクラウド上で提供するサ
ービス。
• 初期は、Rubyだけだったが近年,Java,
JavaScript, Scala, Python, PHP, Clojureなどの言
語が利用できるようになっている。
13年6月2日日曜日
Herokuの利用方法に
ついて
13年6月2日日曜日
環境
• Macbook pro (mountain lion)
• ruby 1.9.3-p374
• Sinatra
13年6月2日日曜日
Herokuに登録
13年6月2日日曜日
13年6月2日日曜日
heroku toolbelt をイン
ストール
• https://toolbelt.heroku.com/
13年6月2日日曜日
gitのインストール、
その他設定は省略し
ます。
13年6月2日日曜日
gitリポジトリを作成、
commitする。
• ①git init
• ②git add .
• ③git commit -a ‘initial commit’
13年6月2日日曜日
Herokuにプロジェクトを登録する
• ①gem install Heroku
• ②heroku create ‘プロジェクト名’
13年6月2日日曜日
http://test-
project1.herokuapp.com/
13年6月2日日曜日
13年6月2日日曜日
Herokuにデプロイする
• git push heroku master
13年6月2日日曜日
このままでは、エラーに
なります。
13年6月2日日曜日
'sqlite3', :group
=>[:development, :test]
group :production do
gem 'pg'
end
• gem ‘sqlite3’
13年6月2日日曜日
$ git add .
$ git commit -m 'gemfile modified'
$ git push heroku master
$ heroku run rake db:migrate
13年6月2日日曜日
13年6月2日日曜日
何でだろう??
13年6月2日日曜日
ちなみにメールでこのよ
うに返ってきました。
13年6月2日日曜日
13年6月2日日曜日
ご清聴ありがとうございまし
た。
13年6月2日日曜日

More Related Content

What's hot

Touchdiamond S21HT Review
Touchdiamond S21HT ReviewTouchdiamond S21HT Review
Touchdiamond S21HT Reviewmasaki ishitani
 
横浜のコミュニティを盛り上げる会について
横浜のコミュニティを盛り上げる会について横浜のコミュニティを盛り上げる会について
横浜のコミュニティを盛り上げる会について高見 知英
 
eeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeejt_test
 
wwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwjt_test
 
tttttttt
tttttttttttttttt
ttttttttjt_test
 
eeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeejt_test
 
qqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqjt_test
 
rrrrrrrrr
rrrrrrrrrrrrrrrrrr
rrrrrrrrrjt_test
 
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)洋史 東平
 
初心から一週間で作ってみた Kinesis Client Library for Go
初心から一週間で作ってみた Kinesis Client Library for Go初心から一週間で作ってみた Kinesis Client Library for Go
初心から一週間で作ってみた Kinesis Client Library for GoTerui Masashi
 
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)洋史 東平
 

What's hot (15)

Touchdiamond S21HT Review
Touchdiamond S21HT ReviewTouchdiamond S21HT Review
Touchdiamond S21HT Review
 
横浜のコミュニティを盛り上げる会について
横浜のコミュニティを盛り上げる会について横浜のコミュニティを盛り上げる会について
横浜のコミュニティを盛り上げる会について
 
Travel plan to Hokkaido
Travel plan to HokkaidoTravel plan to Hokkaido
Travel plan to Hokkaido
 
eeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeee
 
wwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwww
 
tttttttt
tttttttttttttttt
tttttttt
 
eeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeee
 
testportfolio
testportfoliotestportfolio
testportfolio
 
qqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqq
 
testportfolio
testportfoliotestportfolio
testportfolio
 
rrrrrrrrr
rrrrrrrrrrrrrrrrrr
rrrrrrrrr
 
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)
Software Freedom Day 2012をみんなで祝おう & 図形の問題 出題編(OSC2012 Shimane LT資料)
 
初心から一週間で作ってみた Kinesis Client Library for Go
初心から一週間で作ってみた Kinesis Client Library for Go初心から一週間で作ってみた Kinesis Client Library for Go
初心から一週間で作ってみた Kinesis Client Library for Go
 
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)
OSCが終わったらお風呂に入りましょう(オープンソースカンファレンス 2012 Kansai@Kyoto LT用資料その2)
 
just one line
just one linejust one line
just one line
 

Viewers also liked

Universidad técnica de ambato
Universidad técnica de ambatoUniversidad técnica de ambato
Universidad técnica de ambatoLissbetSalazar
 
Journal Article Versioning
Journal Article VersioningJournal Article Versioning
Journal Article VersioningSAGE Publishing
 
Segmentation de la clientele CHF T'NANCY'E
Segmentation de la clientele CHF T'NANCY'ESegmentation de la clientele CHF T'NANCY'E
Segmentation de la clientele CHF T'NANCY'EFabrice CLAMAGIRAND
 
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...John Blue
 
2016 Charleston Photo Contest Winners
2016 Charleston Photo Contest Winners2016 Charleston Photo Contest Winners
2016 Charleston Photo Contest WinnersSAGE Publishing
 
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...John Blue
 
Comparison of Ethiopian and Kenyan Commercial Banks
Comparison of Ethiopian and Kenyan Commercial Banks Comparison of Ethiopian and Kenyan Commercial Banks
Comparison of Ethiopian and Kenyan Commercial Banks sabiadmasu
 
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...SAGE Publishing
 
Mundësitë e reja në luftimin e sklerozës multiple
Mundësitë e reja në luftimin e sklerozës multipleMundësitë e reja në luftimin e sklerozës multiple
Mundësitë e reja në luftimin e sklerozës multipleBlerim Myftiu
 

Viewers also liked (14)

Ruby 2.4.0 の主な非互換
Ruby 2.4.0 の主な非互換Ruby 2.4.0 の主な非互換
Ruby 2.4.0 の主な非互換
 
ARCHE HOTEL ANNONCE 2017
ARCHE HOTEL ANNONCE 2017ARCHE HOTEL ANNONCE 2017
ARCHE HOTEL ANNONCE 2017
 
Ryan CV PDF
Ryan CV PDFRyan CV PDF
Ryan CV PDF
 
Universidad técnica de ambato
Universidad técnica de ambatoUniversidad técnica de ambato
Universidad técnica de ambato
 
Journal Article Versioning
Journal Article VersioningJournal Article Versioning
Journal Article Versioning
 
Segmentation de la clientele CHF T'NANCY'E
Segmentation de la clientele CHF T'NANCY'ESegmentation de la clientele CHF T'NANCY'E
Segmentation de la clientele CHF T'NANCY'E
 
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...
Dr. Steve Dritz - Latest Field Research and Available Tools to Evaluate and I...
 
2016 Charleston Photo Contest Winners
2016 Charleston Photo Contest Winners2016 Charleston Photo Contest Winners
2016 Charleston Photo Contest Winners
 
DigiPinguïns: Kodi / OpenELEC
DigiPinguïns: Kodi / OpenELECDigiPinguïns: Kodi / OpenELEC
DigiPinguïns: Kodi / OpenELEC
 
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...
Dr. Tom Rehberger - Early Colonizing Bacteria in the GI Tract - Lessons from ...
 
Comparison of Ethiopian and Kenyan Commercial Banks
Comparison of Ethiopian and Kenyan Commercial Banks Comparison of Ethiopian and Kenyan Commercial Banks
Comparison of Ethiopian and Kenyan Commercial Banks
 
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...
5 Tips for Teaching Introduction to Mass Communication: Engaging Students Liv...
 
Annexure c
Annexure c Annexure c
Annexure c
 
Mundësitë e reja në luftimin e sklerozës multiple
Mundësitë e reja në luftimin e sklerozës multipleMundësitë e reja në luftimin e sklerozës multiple
Mundësitë e reja në luftimin e sklerozës multiple
 

Herokuをつかってみた。