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 Support
Search
Keiko Oda
July 30, 2013
Technology
5
3.1k
Heroku Support
Talk at Heroku Meetup #9 Summer & Beer !! about Heroku Support
Keiko Oda
July 30, 2013
Tweet
Share
More Decks by Keiko Oda
See All by Keiko Oda
Exploring Postgres VACUUM with the VACUUM Simulator
keiko713
5
13k
Introduction to Netlify
keiko713
1
89
What really happens when you deploy a site on Netlify
keiko713
0
780
Healthy Database
keiko713
2
250
What's wrong with your app?
keiko713
0
290
Heroku101 Kanazawa
keiko713
2
530
Intro of Heroku Support
keiko713
0
390
What is Heroku?
keiko713
0
230
Heroku 3mins FAQ
keiko713
0
300
Other Decks in Technology
See All in Technology
ロリポップ! for Gamersを支えるインフラ/lolipop for gamers infrastructure
takumakume
0
120
「家族アルバム みてね」における運用管理・ オブザーバビリティの全貌 / Overview of Operation Management and Observability in FamilyAlbum
isaoshimizu
4
140
事前準備が肝!AI活用のための業務改革
layerx
PRO
1
140
20240912 JJUGナイトセミナー
mii1004
0
130
なぜクラウドサービスで Web コンソールを提供するのか
shuta13
4
2k
Developer Experienceを向上させる基盤づくりの取り組み事例集
coconala_engineer
0
110
音声AIエージェントの世界とRetell AI入門 / Introduction to the World of Voice AI Agents and Retell AI
rkaga
5
910
アプリをリリースできる状態に保ったまま 段階的にリファクタリングするための 戦略と戦術 / Strategies and tactics for incremental refactoring
yanzm
6
650
DroidKaigi 2024 たすけて!ViewModel
mhidaka
5
560
AI でアップデートする既存テクノロジーと、クラウドエンジニアの生きる道
soracom
PRO
2
390
自社サービスのための独自リリース版Redmine「RedMica」の取り組み
vividtone
0
1.1k
技術ブログや登壇資料を秒で作るコツ伝授します
minorun365
PRO
23
5.4k
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
RailsConf 2023
tenderlove
27
800
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
28
1.6k
Side Projects
sachag
451
42k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
166
48k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Git: the NoSQL Database
bkeepers
PRO
425
64k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
How to train your dragon (web standard)
notwaldorf
85
5.6k
A better future with KSS
kneath
235
17k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
Transcript
Heroku Support Technical Support Engineer Keiko Oda (@keiko713) 1 Wednesday,
July 31, 13
Table of Contents 2 About Me How Did I Get
Hired? Heroku Support Frequently Asked Questions Wednesday, July 31, 13
About Me 3 Wednesday, July 31, 13
About Me 4 ৫ాܟࢠ ,FJLP0EB ੴݝۚࢢग़ ߴઐˠେֶˠ4*FS ZST ˠ4'
ZST ˠ)FSPLV +BWBˠ1ZUIPOˠ3VCZ Wednesday, July 31, 13
How Did I Get Hired? 5 Wednesday, July 31, 13
How Did I Get Hired? 6 ࢲɿࣄΛ୳͍ͯͨ͠ 4BO 'SBODJTDPʹॅΜͰ͍ͨ )FSPLVɿXB[BDPOGJO'FC
JO4BO'SBODJTDP !ZVTVLF͞Μ͕!BZVNJO͞ ΜΛհ !BZVNJO͞Μ͕$ISJTΛհ Wednesday, July 31, 13
Heroku Hiring Process 4DSFFOJOH 5FDI*OUFSWJFX 4UBSUFS1SPKFDU ˠνʔϜʹϑΟοτ͢Δʁ 7 Wednesday, July
31, 13
Heroku Support 8 Wednesday, July 31, 13
Heroku Support 9 Heroku Support Team How to Open a
Ticket Heroku Support Engineer ͷҰ Wednesday, July 31, 13
Heroku Support Team 10 Neil Caio Keiko Rhys JD Brett
Clint Ryan Chris Wednesday, July 31, 13
Heroku Support Team 11 Core Support (Triage) Embedded Support (Database,
Runtime/Routing) Support Engineering (Help App, rack-‐timeout, etc.) Wednesday, July 31, 13
How to Open a Ticket 12 Wednesday, July 31, 13
How to Open a Ticket 13 https://help.heroku.com Ticket Wednesday, July
31, 13
How to Open a Ticket 14 https://help.heroku.com Ticket Wednesday, July
31, 13
15 ॳ৺ऀͷํ͚ ɾ͡ΊʹɹɹɹɹɹɹɾಠࣗυϝΠϯ ɾσʔλͷΠϯϙʔτɹɾ44)Ωʔ·ΘΓ ɾ1PTUHSFTͷϓϥϯ Ticket Wednesday, July 31, 13
16 Α͋͘Δ࣭ ɾ44-ೝূͷՃɹɹɾϦΫΤετλΠϜΞτ ɾΞϓϦ͕ΦϑϥΠϯɹɾΞοϓλΠϜΛ࠷େʹ ɾΞϓϦέʔγϣϯΤϥʔ Ticket Wednesday, July 31, 13
17 աڈͷࣗͷνέοτ Ticket Wednesday, July 31, 13
Heroku Dev Center 18 https://devcenter.heroku.com Ticket Wednesday, July 31, 13
Let’s try it 19 εςʔλενΣοΫ Ticket Wednesday, July 31, 13
Let’s try it 20 ͙͙ΔཁྖͰݕࡧޠΛೖΕͯΤϯλʔ ʢਃ͠༁ͳ͍Ͱ͕͢ӳޠͰɾɾɾʣ Ticket Wednesday, July 31,
13
Let’s try it 21 ؔ࿈ͨ͠هࣄ͕ͳ͍͔νΣοΫ Ticket Wednesday, July 31, 13
Let’s try it 22 ΅͍͠ͷ͕ݟ͔ͭΒͳ͔ͬͨΒ Ticket Wednesday, July 31, 13
Let’s make a ticket 23 Ticket Wednesday, July 31, 13
24 ࣭ͷछྨΛબ ɾΞϓϦؔ࿈ ɾσʔλϕʔεؔ࿈ ɾΞυΦϯؔ࿈ ɾྉۚؔ࿈ ɾʹؔ͢Δ͝ҙݟ ɾηΩϡϦςΟؔ࿈ Ticket Wednesday,
July 31, 13
25 ΞϓϦέʔγϣϯ໊ )FSPLVͷελοϑ͕ΞϓϦͷ ίʔυΛӾཡͯ͠Α͍͔ ϓϥΠΦϦςΟʔΛࢦఆ -PXɿʹؔ͢Δ࣭ /PSNBMɿҰൠతͳ )JHIɿϓϩμΫγϣϯΞϓϦͷ 6SHFOUɿϓϩμΫγϣϯΞϓϦ͕ΦϑϥΠϯ Ticket
Wednesday, July 31, 13
26 (JUIVC'MBWPSFE.BSLEPXOɹ ͑·͢ Ticket ճ༧࣌ؒ Wednesday, July 31, 13
νέοτॻ͖ํͷίπ 27 Hi, My assets are missing. It worked fine
before, but stopped working after I updated Rails from 3.2.13 to 4.0.0. It works fine locally. Best, Keiko ॻ͖ग़͠)JͰ Կ͕ىͬͨ͜ͷ͔ Կ͔มߋͨ͜͠ͱ ͋Δ͔ ϩʔΧϧͰಈ͔͘ #FTU $IFFST 5IBOLTͳͲ ࣗͷ໊લ Ticket Wednesday, July 31, 13
Support Engineer ͷҰ 28 Wednesday, July 31, 13
29 Zendesk Wednesday, July 31, 13
HipChat 30 Wednesday, July 31, 13
Terminal 31 Wednesday, July 31, 13
Frequently Asked Questions 32 Wednesday, July 31, 13
Frequently Asked Questions Ruby and Ruby on Rails Java/PHP/node.js/Python/others Heroku
Postgres Add-‐ons 33 Wednesday, July 31, 13
Ruby and Ruby on Rails 34 Wednesday, July 31, 13
Ruby and Ruby on Rails Rails 4 Assets Pipeline Ruby
Version H12 Request Timeout 35 Wednesday, July 31, 13
Rails 4 Logging and Assets Upgrading a Rails 3 app
sprockets-‐rails 36 Rails4 Wednesday, July 31, 13
Logging and Assets 37 Please add `rails_12factor` gem! https://github.com/heroku/rails_12factor (In
your Gemfile) gem ‘rails_12factor`, group: :production Rails4 Wednesday, July 31, 13
Upgrading a Rails3 app 38 Need to generate `bin` directory
http://railscasts.com/episodes/415-‐upgrading-‐ to-‐rails-‐4 (In your local project) $ rake rails:update:bin Rails4 Wednesday, July 31, 13
sprockets-‐rails 39 Only compiles digest filenames https://github.com/rails/sprockets-‐ rails#changes-‐from-‐rails-‐3x (In your
local assets files, e.g. css) background: url(/assets/my_bg.png); #see http://guides.rubyonrails.org/asset_pipeline.html Rails4 Wednesday, July 31, 13
Assets Pipeline Assets Pipeline with Heroku * Compiling assets locally
* Compiling assets during slug compilation * Compiling assets during runtime 40 Assets Wednesday, July 31, 13
Compiling assets locally 41 Έͳ͞ΜͷϚγϯͷ΄͏͕)FSPLVΑΓ ʢ͖ͬͱʣૣ͍Ͱ͢ (In your local project)
$ RAILS_ENV=production bundle exec rake assets:precompile $ git add public/assets Assets Wednesday, July 31, 13
Compiling assets during slug compilation 42 Ұ൪ϙϐϡϥʔͳํ๏ʢϩʔΧϧͰͷ BTTFUTQSFDPNQJMFΕ͕ͪͳͨΊʣ $ git
push heroku master -‐-‐-‐-‐-‐> Preparing Rails asset pipeline Running: rake assets:precompile Assets Wednesday, July 31, 13
Compiling assets during runtime 43 TMVHDPNQJMBUJPOதͷBTTFUTQSFDPNQJMF ͕ࣦഊͨ͠ΒΔʢରॲ͠·͠ΐ͏ʣ $ git push
heroku master -‐-‐-‐-‐-‐> Preparing Rails asset pipeline Precompiling assets failed, enabling runtime asset compilation Assets Wednesday, July 31, 13
Tips "TTFUT͕͍ɹˠɹ$%/Λ͏ IUUQTEFWDFOUFSIFSPLVDPNBSUJDMFTDEOBTTFU IPTUSBJMT QSFDPNQJMF͕ࣦഊ͢Δ IFSPLVMBCTFOBCMFVTFSFOWDPNQJMFBNZBQQ 44 Assets Wednesday, July
31, 13
Ruby Version 45 Please specify your Ruby’s version! Default Ruby
ver for a new app is 2.0.0 (In your Gemfile) ruby ‘1.9.3’ Ruby Version Wednesday, July 31, 13
H12 Request Timeout ඵҎ্͔͔ͬͨSFRVFTUϧʔλʔϨ ϕϧͰఀࢭ͢Δ ظతͳରॲ๏ɿEZOPΛ૿͢ɺEZOPͷ SFTUBSU 46 H12 Wednesday,
July 31, 13
H12 Request Timeout ظతͳରॲ๏ɿ ࣌ؒͷ͔͔Δॲཧ֎ग़͠ EFMBZFE@KPCͳͲ ͢Δ ˠ/FX3FMJDSBDLUJNFPVUHFNΛͬͯಛఆ 6OJDPSO1VNBΛ͏ ˠ1SPEVDUJPOΞϓϦʹ8&#SJDLΘͳ͍Ͱʜ
ˠ5JNFPVUΛઃఆͯ͠)ͷલʹSFRVFTUΛऴྃͤ͞Δ 47 H12 Wednesday, July 31, 13
Java/PHP 48 Wednesday, July 31, 13
Java R14 (Out of Memory) error * Heroku default RAM:
512MB (1X dyno) * Use log-‐runtime-‐metrics and log2viz * Use 2X dyno 49 Wednesday, July 31, 13
PHP * How to connect Database -‐> ClearDB add-‐on
5MB ·Ͱແྉ * mail() call won’t work with Heroku -‐> Use Email addons (SendGrid, MailgunͳͲ) 50 Wednesday, July 31, 13
node.js/Python/Others 51 Wednesday, July 31, 13
node.js node.js ΞϓϦʹ͓͢͢Ίͷ add-‐on Nodetime https://devcenter.heroku.com/articles/ nodetime 52 Wednesday, July
31, 13
Python * https://discussion.heroku.com/ * How do I specify a private
git repo in my requirements.txt? * How to manage production/staging/dev Django settings? 53 Wednesday, July 31, 13
Others * ͍ΖΜͳݴޠͷ࣭͖·͢ Clojure, Scala, Erlang, Go, R, Haskell,
etc... ʢ೦ͳ͕ΒճͰ͖ͳ͍߹͋Γ· ͢ɺྃ͝ঝ͍ͩ͘͞ʣ 54 Wednesday, July 31, 13
Heroku Postgres 55 Wednesday, July 31, 13
Heroku Postgres https://devcenter.heroku.com/articles/ postgres-‐logs-‐errors 56 app[postgres]: LOG: could not
receive data from client: Connection reset by peer app[postgres]: LOG: unexpected EOF on client connection Wednesday, July 31, 13
Heroku Postgres https://devcenter.heroku.com/articles/heroku-‐ postgres-‐database-‐tuning 57 Wednesday, July 31, 13
Add-‐ons 58 Wednesday, July 31, 13
Please add these add-‐ons! * logging: Papertrail, Logentries *
Analytics: New Relic, Nodetime 59 Wednesday, July 31, 13
Support for Add-‐ons * ͠Herokuͷ͔Add-‐onͷ͔Γ ͚͕Ͱ͖ͳ͍߹ɺԕྀແ͘ help.heroku.comʹ͍͛ͯͩ͘͞ * ͪ͜ΒͰΓ͚Λ͠ɺAdd-‐on providers
ͷΤεΧϨʔγϣϯ͠·͢ 60 Wednesday, July 31, 13
Any Questions? 61 Wednesday, July 31, 13