$30 off During Our Annual Pro Sale. View Details »

Railsアプリの運営とQOL爆アゲアイテム

katryo
July 30, 2014

 Railsアプリの運営とQOL爆アゲアイテム

画像は得能正太郎さんのNEW GAME! 第1巻
http://www.dokidokivisual.com/comics/book/past.php?cid=883 から無断利用しています。

katryo

July 30, 2014
Tweet

More Decks by katryo

Other Decks in Technology

Transcript

  1. RailsΞϓϦͷӡӦͱ
    QOLരΞήΞΠςϜ
    @katryo

    View Slide

  2. Denkinovel

    View Slide

  3. View Slide

  4. ΞϓϦέʔγϣϯߏ੒
    • Rails4
    • Backbone.js
    • Twitter Bootstrap Sass
    • PostgreSQL

    View Slide

  5. ݴ͍͍ͨ͜ͱ
    gemͰRubyϥΠϒϥϦҎ֎ͷ؅ཧΛ͠ͳ͍
    TwitterBootstrap΍Backbone.jsΛgemͰ؅ཧ
    ͢Δͱɺόʔδϣϯ؅ཧ͕໘౗ʹͳΔɻ
    ϝϯς͞Εͳ͘ͳΔ৔߹΋ଟ͍

    View Slide

  6. JavaScriptͱCSSϥΠϒϥϦ͸
    bowerͱ͔Ͱ
    ؅ཧ͠Α͏

    View Slide

  7. Πϯϑϥ
    • ͘͞ΒVPS 2GBϓϥϯʢΞϓϦέʔγϣϯ
    &DBαʔόʣ
    • Heroku͔ΒҠߦͨ͠
    • Amazon S3ʢը૾Ξοϓϩʔυઌʣ
    • Chef

    View Slide

  8. ݴ͍͍ͨ͜ͱ

    View Slide

  9. Heroku࠷ڧ

    View Slide

  10. Herokuͱ͸
    ΠϯϑϥΛؾʹͤͣΞϓϦέʔγϣϯΛՔಇɾ
    ӡӦͰ͖ΔαʔϏε
    !
    جຊແྉʢ༗ྉϓϥϯ͸اۀ޲͚ɺ͓ߴΊʣ

    View Slide

  11. Herokuͷ͍͍ͱ͜Ζ
    • ಠࣗυϝΠϯ΋࢖͑Δ
    • Perl΋࢖͑Δʢඇެࣜʣ
    • ҆ఆ͍ͯ͠ΔʢQuipperࣾ͸੡඼ΛherokuͰ
    ӡӦ͍ͯ͠Δʣ

    View Slide

  12. Heroku => ͘͞ΒVPS
    ʹͨ͠ཧ༝

    View Slide

  13. ϑΝΠϧαΠζ੍͕ݶಥഁͨ͠
    • Heroku͸1ϦϙδτϦ300MB·Ͱ
    • Denkinovel͸ૉࡐը૾Λେྔʹ͍࣋ͬͯΔͷͰ࢓
    ํͳ͔ͬͨ
    • asset_syncͱ͍͏ϥΠϒϥϦΛ࢖ͬͯૉࡐ͚ͩS3
    ʹೖΕΔํ๏΋͋Δɻ͕ɺΊΜͲ͘ͳ͖ͬͯͨ
    • ͋ͱɺແྉ࿮ͩͱworker͕࢖͑ͳ͍

    View Slide

  14. Heroku͔Β͘͞ΒVPSʹҠߦ͠
    ͨײ૝
    • σϓϩΠΘ͔ΒΜ
    • CapistranoΘ͔ΒΜ
    • NginxΘ͔ΒΜ
    • UnicornΘ͔ΒΜ
    • ϓϩηε؅ཧΘ͔ΒΜ

    View Slide

  15. View Slide

  16. Heroku࠷ڧ
    ΋͏͍ͪͲ

    View Slide

  17. Herokuͩͱ
    • σϓϩΠ͸herokuͷremoteϦϙδτϦʹgitͰ
    push͢Δ͚ͩ
    • DBͳͲ͸ϓϥάΠϯΛΆͪΆͪબͿ͚ͩ
    • αʔόઃఆ͸Α͠ͳʹ΍ͬͯ͘ΕΔ
    • ؀ڥ͸pushͷͨͼʹ৽͘͠࡞ΒΕΔʢImmutable
    Infrastructure΍ʂʣ

    View Slide

  18. View Slide

  19. ͪͳΈʹ

    View Slide

  20. ΠέͯΔWebΞϓϦ
    zoi ΋herokuΛར༻
    http://zoi.herokuapp.com
    63-ʹ஫໨ʂ

    View Slide

  21. WebΞϓϦ࡞ΔͳΒ
    ͱΓ͋͑ͣHerokuͰ͍͍

    View Slide

  22. ΠϯϑϥͷઃఆΛࣗ෼Ͱߦ͏͜ͱ͕ॏཁ͔ʁ
    Λߟ͑Α͏ɻ
    !
    झຯΞϓϦέʔγϣϯͷ৔߹ɺ
    ΠϯϑϥઃఆΛࣗ෼Ͱ΍Δ͜ͱ͸ॏཁͰ͸ͳ͍……͜ͱ͕ଟ͍

    View Slide

  23. HerokuΑΓศརͳ΋ͷ

    View Slide

  24. υϥϜࣜ
    ચ୕ס૩ػ
    Panasonic
    NA-VX3300L
    !
    ¥122,200 ~ ¥202,733

    View Slide

  25. ׯ͢खؒͷফ໓
    കӍͷ࣌ظ͸ಛʹॿ͔ͬͨɻ
    !
    ͳ͓ס૩ͤ͞Δͱ͠Θ͠ΘʹͳΔͷͰɺ
    ͠Θ͠ΘͰ΋ߏΘͳ͍෰ΛணΔ͜ͱɻ
    !
    ࢖͏ͨͼʹϑΟϧλʔͷᆍΛ૟আػͰͱΒͳ͍ͱ͍͚ͳ͍ͷ͸
    ͪΐͬͱ͚ͩ໘౗

    View Slide

  26. Ҝࢠ
    Herman Miller
    ΤϯϘσΟνΣΞ
    !
    ¥160,000 ~ ¥220,000

    View Slide

  27. ϫʔΩϯάνΣΞͷ࠷ߴๆ
    ָɻ
    ർΕͳ͍ɻ
    ങ͏ͳΒେ௩Ո۩͋ͨΓ͕Α͍ʢ஌͍ͬͯΔݶΓҰ
    ൪͍҆ʣ
    ೔ຊϚΠΫϩιϑτͷΦϑΟενΣΞͱͯ͠࠾༻͞
    Ε͍ͯΔͷͩͱ͔

    View Slide

  28. ৯ثચ͍
    ס૩ػ
    Panasonic
    NP-TR7
    !
    ¥52,580 ~ ¥89,424

    View Slide

  29. ࣗਬʹ᪳᪯͕ͳ͘ͳΔ
    ͨͩ͠༰ྔʹ͸ݶք͕͋Δɻ
    ϑϥΠύϯͱುɺ྆ํΛચ͏ͷ͸ϜϦͳͷͰɺ
    2౓ʹ෼͚ͯચ͏͜ͱʹͳΔɻ

    View Slide

  30. ·ͱΊ

    View Slide

  31. ศརαʔϏεͱ
    QOLരΞήΞΠςϜͰ
    ָ͍͠։ൃΛ

    View Slide