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

Heroku 3mins FAQ

Keiko Oda
January 16, 2014

Heroku 3mins FAQ

Slides for Heroku Meetup #11

Keiko Oda

January 16, 2014
Tweet

More Decks by Keiko Oda

Other Decks in Technology

Transcript

  1. Heroku  (Japan૊) 3 ·ͭ΋ͱ͞Μ ͩ͞͞͞Μ ͳ͔ͩ͞Μ ͍͋͟Θ͞Μ ͓͚͍ͩ͜ ʢRubyͭͬͨ͘ͻͱʣ ʢRuby͜Θͯ͠Δͻͱʣ

    ʢRubyͳ͓ͯ͠Δͻͱʣ ʢRubyίϛολʔΒ͍͠ʣ ʢ;ͭ͏ͷͻͱʣ ͍͍ͩͨ͋ͬͯΔ Matz made Ruby Nobu fixes Ruby Koichi breaks Ruby Ayumu sells Ruby Keiko supports Ruby
  2. Custom  domain All  apps  on  Heroku  are  accessible  via  their

      herokuapp.com  app  subdomain e.g.  appname.heroku.com ΧελϜυϝΠϯΛ࢖༻͢Δʹ͸ઃఆ͕ඞཁ 6
  3. Step1:  Add  custom  domains 8 Heroku  CLI  or  dashboard https://devcenter.heroku.com/articles/custom-­‐domains

    $  heroku  domains $  heroku  domains:add  example.com $  heroku  domains:remove  example.com
  4. Step2:  Configure  DNS  record 9 *  For  subdomain  or  wildcard

     domain CNAME Record Name Target CNAME www or * appname.herokuapp.com
  5. Step2:  Configure  DNS  record 10 *  For  root  domain ALIAS/ANAME

     OR  subdomain  redirection Record Name Target ALIAS or ANAME <empty> or @ appname.herokuapp.com
  6. Step2:  Configure  DNS  record 11 *  For  root  domain ALIAS/ANAME

     OR  subdomain  redirection Record Name Target URL or Forward example.com www.example.com
  7. SSL  Endpoint 12 Use  the  SSL  Endpoint  add-­‐on  ($20/month) https://devcenter.heroku.com/articles/ssl-­‐endpoint

    $  heroku  addons:add  ssl:endpoint $  heroku  certs $  heroku  certs:add  server.crt  server.key
  8. SSL  Endpoint  ͷ஫ҙ఺ 13 *  Please  don’t  forget  to  update

     your  CNAME!!! *  New  endpoint  will  be  given  when  you  add   your  certs!  (e.g.  sample.herokussl.com) *  You  can’t  use  subdomain  redirection  for  your   apex  domain!!  (it’ll  cause  a  browser  error)