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
520
Ladder Drive - To start IoT for manufacturing.
itosoft
0
54
irBoardの紹介と クラウドサービスの活用
itosoft
1
450
irBoard活用可能性
itosoft
0
120
東北IT物産展2016スポンサーLT
itosoft
0
85
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
書き捨てではなく継続開発可能なコードをAIコーディングエージェントで書くために意識していること
shuyakinjo
1
270
Comparing decimals in Swift Testing
417_72ki
0
170
WebAssemblyインタプリタを書く ~Component Modelを添えて~
ruccho
1
790
React 使いじゃなくても知っておきたい教養としての React
oukayuka
18
5.6k
What's new in Adaptive Android development
fornewid
0
140
あまり知られていない MCP 仕様たち / MCP specifications that aren’t widely known
ktr_0731
0
250
Flutterと Vibe Coding で個人開発!
hyshu
1
250
コーディングは技術者(エンジニア)の嗜みでして / Learning the System Development Mindset from Rock Lady
mackey0225
2
440
技術的負債で信頼性が限界だったWordPress運用をShifterで完全復活させた話
rvirus0817
1
1.6k
Understanding Kotlin Multiplatform
l2hyunwoo
0
260
STUNMESH-go: Wireguard NAT穿隧工具的源起與介紹
tjjh89017
0
360
20250808_AIAgent勉強会_ClaudeCodeデータ分析の実運用〜競馬を題材に回収率100%の先を目指すメソッドとは〜
kkakeru
0
160
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Into the Great Unknown - MozCon
thekraken
40
2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
What's in a price? How to price your products and services
michaelherold
246
12k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Code Review Best Practice
trishagee
69
19k
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༵ۚ