Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

PaaS向けCMS Lokka

8,588 views

Published on

Introduce CMS Lokka.

Published in: Technology, Business
  • Be the first to comment

PaaS向けCMS Lokka

  1. 1. PaaS CMS Lokka Masaki Komagata FJORD, LLC
  2. 2. komagata
  3. 3. FJORD
  4. 4. @komagata@machida
  5. 5. Cloud PaaS CMS “Lokka”
  6. 6. Heroku
  7. 7. Web Heroku
  8. 8. Web Heroku•
  9. 9. Web Heroku•• capistrano
  10. 10. Web Heroku•• capistrano•
  11. 11. Heroku• Help me, hackers! (http://help-me-hackers.com)• Ham Cutlet (http://hamcutlet.fjord.jp)• Next Holiday (http://holiday.fjord.jp)• MAKES THIS (http://makesthis.com)
  12. 12. WordPress
  13. 13. Lokka
  14. 14. Lokka• WordPress Heroku
  15. 15. Lokka• WordPress Heroku• WordPress PHP
  16. 16. Lokka• WordPress Heroku• WordPress PHP• Rubyist
  17. 17. WordPress
  18. 18. Heroku Lokka
  19. 19. $ git clone git://github.com/komagata/lokka.git
  20. 20. $ git clone git://github.com/komagata/lokka.git$ cd lokka
  21. 21. $ git clone git://github.com/komagata/lokka.git$ cd lokka$ heroku apps:create
  22. 22. $ git clone git://github.com/komagata/lokka.git$ cd lokka$ heroku apps:create$ git push heroku master
  23. 23. $ git clone git://github.com/komagata/lokka.git$ cd lokka$ heroku apps:create$ git push heroku master$ heroku rake db:setup
  24. 24. $ git clone git://github.com/komagata/lokka.git$ cd lokka$ heroku apps:create$ git push heroku master$ heroku rake db:setup Lokka
  25. 25. $ git clone git://github.com/komagata/lokka.git$ cd lokka$ heroku apps:create$ git push heroku master$ heroku rake db:setup$ heroku apps:open Lokka
  26. 26. Admin login (user / password : test / test)
  27. 27. Heroku
  28. 28. Lokka
  29. 29. 1. DB
  30. 30. 1. DB • RDB, KVS, Document DB, etc...
  31. 31. 1. DB • RDB, KVS, Document DB, etc... • MySQL, PostgreSQL, SQLite, Redis
  32. 32. 1. DB • RDB, KVS, Document DB, etc... • MySQL, PostgreSQL, SQLite, Redis ActiveRecord Datamapper memcached API ( DB Adapter )
  33. 33. • Heroku GAE PaaS MySQL
  34. 34. • Heroku GAE PaaS MySQL• KVS object Marshal aggregate KVS
  35. 35. • Heroku GAE PaaS MySQL• KVS object Marshal aggregate KVS• ActiveRecord …
  36. 36. 2.
  37. 37. 2.•
  38. 38. 2.•• picasa
  39. 39. 2.•• picasa• PaaS OSS
  40. 40. 3. API
  41. 41. 3. API• WordPress API
  42. 42. 3. API• WordPress API• erb, haml, slim, erubis
  43. 43. <h1><%= @site.title %><h1><% @posts.each do |post| %> <h2><%= post.title %></h2> <%= post.body %> <a href="<%= post.category.link %>"> <%= post.category.name %> </a><% end %>
  44. 44. 4.
  45. 45. 4. • Lokka Plugin Sinatra Extension
  46. 46. 4. • Lokka Plugin Sinatra Extension • Ruby WordPress
  47. 47. # lokka/hello.rb:module Lokka::Hello def self.registered(app) app.get / do hello end endend hello
  48. 48. hello
  49. 49. Lokka
  50. 50. 1.
  51. 51. 1.•
  52. 52. 1.••
  53. 53. 1.•••
  54. 54. 1.••• #^ω^•
  55. 55. 2.
  56. 56. 2.• CGI Rack
  57. 57. 2.• CGI Rack•
  58. 58. 2.• CGI Rack•• PaaS
  59. 59. 3.
  60. 60. 3. • WordPress Jenkins 1
  61. 61. 3. • WordPress Jenkins 1 • PaaS
  62. 62. 3. • WordPress Jenkins 1 • PaaS •
  63. 63. Lokka
  64. 64. Heroku Lokka X
  65. 65. X

×