Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Heroku Support

Heroku Support

Talk at Heroku Meetup #9 Summer & Beer !! about Heroku Support

Keiko Oda

July 30, 2013
Tweet

More Decks by Keiko Oda

Other Decks in Technology

Transcript

  1. Table  of  Contents 2 About  Me How  Did  I  Get

     Hired? Heroku  Support Frequently  Asked  Questions Wednesday, July 31, 13
  2. How  Did  I  Get  Hired? 6 ࢲɿ࢓ࣄΛ୳͍ͯͨ͠ 4BO 'SBODJTDPʹॅΜͰ͍ͨ )FSPLVɿXB[BDPOGJO'FC

    JO4BO'SBODJTDP !ZVTVLF͞Μ͕!BZVNJO͞ ΜΛ঺հ !BZVNJO͞Μ͕$ISJTΛ঺հ Wednesday, July 31, 13
  3. Heroku  Support 9 Heroku  Support  Team How  to  Open  a

     Ticket Heroku  Support  Engineer  ͷҰ೔ Wednesday, July 31, 13
  4. Heroku  Support  Team 10 Neil Caio Keiko Rhys JD Brett

    Clint Ryan Chris Wednesday, July 31, 13
  5. Heroku  Support  Team 11 Core  Support  (Triage) Embedded  Support  (Database,

     Runtime/Routing) Support  Engineering  (Help  App,  rack-­‐timeout,  etc.) Wednesday, July 31, 13
  6. νέοτॻ͖ํͷίπ 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
  7. Ruby  and  Ruby  on  Rails Rails  4 Assets  Pipeline Ruby

     Version H12  Request  Timeout 35 Wednesday, July 31, 13
  8. Rails  4 Logging  and  Assets Upgrading  a  Rails  3  app

    sprockets-­‐rails 36 Rails4 Wednesday, July 31, 13
  9. 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
  10. 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
  11. 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
  12. Assets  Pipeline Assets  Pipeline  with  Heroku *  Compiling  assets  locally

    *  Compiling  assets  during  slug  compilation *  Compiling  assets  during  runtime 40 Assets Wednesday, July 31, 13
  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
  14. Compiling  assets  during slug  compilation 42 Ұ൪ϙϐϡϥʔͳํ๏ʢϩʔΧϧͰͷ BTTFUTQSFDPNQJMF͸๨Ε͕ͪͳͨΊʣ $  git

     push  heroku  master -­‐-­‐-­‐-­‐-­‐>  Preparing  Rails  asset  pipeline                        Running:  rake  assets:precompile Assets Wednesday, July 31, 13
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. Others *  ͍ΖΜͳݴޠͷ࣭໰΋͖·͢ Clojure,  Scala,  Erlang,  Go,    R,  Haskell,

     etc... ʢ࢒೦ͳ͕Βճ౴Ͱ͖ͳ͍৔߹΋͋Γ· ͢ɺྃ͝ঝ͍ͩ͘͞ʣ 54 Wednesday, July 31, 13
  21. 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
  22. Please  add  these  add-­‐ons! *  logging:  Papertrail,  Logentries *  

     Analytics:  New  Relic,  Nodetime 59 Wednesday, July 31, 13