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

BPStudy#75 スマートWP 裏側のお話からリーンなアプローチまで

63886a19c6fa58102c7eee86dadaab86?s=47 Hiro Fukami
November 29, 2013

BPStudy#75 スマートWP 裏側のお話からリーンなアプローチまで

BPStudy#75 2部
「SmartWP 裏側のお話からリーンなアプローチまで」
スマートWP (http://www.shakesoul.net/smartwp/) のサービス紹介編、テクニカル編、リーンスタートアップの手法実践編

63886a19c6fa58102c7eee86dadaab86?s=128

Hiro Fukami

November 29, 2013
Tweet

Transcript

  1. εϚʔτWP ཪଆͷ͓࿩͔ΒϦʔϯͳ
 Ξϓϩʔν·Ͱ Hiro Fukami ਂւ ׮৴ ShakeSoul, inc. 2013.11.29

    BPStudy#75
  2. I’m ... ਂւ ׮৴ Hiro Fukami גࣜձࣾγΣΠΫι΢ϧ ୅දऔక໾ CEO ૑ۀऀ

    + ΤϯδχΞ + Ұਓ່ͷύύ Blog hirofukami.com FB /fukami TW @d_sea
  3. I made ... Simple Cloud Hosting Service ! iOS Apps

    ! Book
  4. ࠓ೔ͷ͓࿩ αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  5. αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  6. εϚʔτWP ؆୯ɺͰ΋͔ͬ͠Γӡ༻Ͱ͖Δ WordPressΫϥ΢υ shakesoul.net/smartwp

  7. Solutions > WordPressσβΠϯɺαΠτӡӦʹूதͰ͖Δ αʔόηοτΞοϓ αʔόӡ༻ WordPress੍࡞ WordPressηοτΞοϓ αΠτӡӦ ΍Γ͍ͨ͜ͱ αʔϏεͰ୲อ

    ( Ϊϟοϓ ΍Βͳ͖Ό͍͚ͳ͍͜ͱ Ϣʔβ
  8. Summary εέʔϥϒϧ Πϯελϯεʹґଘ͠ͳ͍ϑΝΠϧγεςϜͱσϓϩΠ ؀ڥ ΊͪΌͪ͘Ό؆୯ ࠇ͍ը໘(λʔϛφϧ)ͱLinuxίϚϯυ͸࢖Θͳ͍ ӡ༻ख͍ؒΒͣ ϑΣΠϧΦʔόʔɺόοΫΞοϓ

  9. Functions WordPressϓϦΠϯετʔϧ εςʔδϯά؀ڥ σΠϦʔόοΫΞοϓ ؾͷར͍ͨػೳ: σϑΥϧτϓϥάΠϯ ʮམͪͳ͍ʯʮউखʹεέʔϧʯʮηΩϡΞʯ

  10. and ...

  11. Dropbox Upload ϑΝΠϧΞοϓϩʔυͷख͕ؒͳ͘ͳΔ ϩʔΧϧPCͷ։ൃ؀ڥ͕ͳ͘ͳΔ ڞ༗ͯ͠ڞಉ࡞ۀ ϑΝΠϧόʔδϣϯ؅ཧ ! > αΠτ੍࡞ʹ࠷΋ޮ཰తͳ࡞ۀ؀ڥ

  12. Demo

  13. This is “Cloud”. ແ੍ݶ DB༰ྔ ϝσΟΞ༰ྔ ωοτϫʔΫసૹྔ ΦʔτεέʔϦϯά ઐ༻αʔό؀ڥ

  14. Pricing εϞʔϧελʔτ Bizελϯμʔυ ॳظ ˇ4,980 ˇ9,980 ֹ݄ ˇ8,480 ˇ15,480 εέʔϦϯά୯Ձ

    +ˇ300 +ˇ700
  15. Now ΫϩʔζυЌϦϦʔεத
 
 ڵຯ͕͋Δਓ͸ొ࿥ͯ͠Ͷ OEM, ࠶ൢ΋OKɻ૬ஊͯ͠Ͷ shakesoul.net/smartwp

  16. and one more …

  17. New Service !!

  18. SmartWP Works ! “Ϋϥ΢υͰͭ͘Ζ͏” ! WP੍࡞ऀͷͨΊͷWordPress
 ςεταΠτ

  19. Functions Dropbox Upload Ͱޮ཰తͳ੍࡞ ࣗ༝ͳςʔϚɺϓϥάΠϯ ͦͷ৔ͰϨϏϡʔमਖ਼ ڞ༗ͯ͠ڞಉ੍࡞ Google ΠϯσοΫεʹͷΒͳ͍WebαΠτ

  20. 2013.12.03 Release

  21. QA αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  22. αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  23. SmartWP =
 WordPress PaaS AWS(IaaS)্ʹ Web/DB/WordPressϨΠϠΛ Ճ͑ͨߏ੒ + Web/DB/WordPress

  24. EC2 Auto Scaling ELB S3 wp-content
 /uploads Dropbox Sync s3fs

    RDS Daily Backup
  25. Auto Scaling Πϯελϯεʹґଘ͠ͳ͍ΞʔΩςΫνϟ IPΞυϨε > ELB ϑΝΠϧੜ੒ > NFS ϑΝΠϧσϓϩΠ

    > Dropbox
  26. Capacity FREE wp-content/uploads S3ʹϚ΢ϯτ > s3fs DB RDSͷઃఆͰಈతʹมߋՄೳ

  27. s3fs Πϯελϯε಺෦ʹੜ੒͞ΕΔϑΝΠϧͷσΟ ϨΫτϦ(uploads)Λڞ༗ετϨʔδԽ $ sudo s3fs smartwp:/manage/uploads / usr/share/nginx/html/wp-content/ uploads

    -o allow_other -o nonempty
  28. Dropbox Linux൛ Dropbox Λ EC2 ʹΠϯετʔϧ αΠτσΟϨΫτϦΛϢʔβʹڞ༗ট଴ Ϣʔβʹ͸ڞ༗ট଴Ͱ͖ΔݖརΛ෇༩ daemon --user

    $dbuser /bin/sh -c "/home/ $dbuser/.dropbox-dist/dropboxd&"
  29. Web Performance Nginx + php-fpm εςʔδϯά : Nginx + gzip

    + no_cache :8080 ຊ൪ : Nginx + gzip + proxy_cache :80 WP Plugin “nginx cache controller” Ͱϙετ ࣌ʹΩϟογϡ࡟আ
  30. Performance Test Fastest : 15ms Data Transfered : 226.75MB =

    1.8Gbps
  31. WordPress Settings ύʔϚϦϯΫରԠ > nginx.conf WP؅ཧը໘͔ΒDBૢ࡞(like phpMyAdmin) > WP Plugin

    “Adminer” WP؅ཧը໘͔ΒϓϥάΠϯΠϯετʔϧ OK(Non-FTP) define('FS_METHOD', ‘direct');! in wp-config.php!
  32. Dev & Test Vagrant + chef on Mac save AMI

    on AWS set AutoScaling Command on Mac
  33. WordPressҎ֎΋ αʔόΞϓϦ͕಺෦ੜ੒͢ΔσΟϨΫτϦ Ϣʔβ͕ߋ৽͢ΔσΟϨΫτϦ ͕Θ͔͍ͬͯΕ͹ɺ Πϯελϯεʹґଘ͠ͳ͍ΦʔτεέʔϦ ϯάΠϯϑϥ͕࡞ΕΔ

  34. ΦʔτεέʔϦϯάίϯαϧ΍͍ͬͯΔ ͷͰ૬ஊͯ͠Ͷw shakesoul.net/contact-us

  35. QA αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  36. αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ

  37. Why WordPress? No.1 CMS 59.6% CMS Market Share +1.1% since

    1 October
  38. WP for Biz اۀαΠτɺαʔϏεαΠτͰ΋WP͕࢖ΘΕ͍ͯΔ WPΛ੍࡞͢ΔεΩϧͱαʔόͷߏஙɾӡ༻εΩϧ͸ҟ ͳΔ ϨϯλϧαʔόɾVPS͸WPʹಛԽ͓ͯ͠ΒͣϢʔβͷෛ ୲͕େ͖͍ > WPʹಛԽͨ͠αʔόӡ༻ΛαʔϏε͢Ε͹ྑ͍ͷͰ

    ͸ʁ
  39. ޙԡͨ͠͠ग़དྷࣄ

  40. ϦʔϯελʔτΞοϓຊ ߟ͑ํ͸͘͢͝ೲಘ ͘͢͝΍ͬͯΈ͍ͨ Ͱ΋ɺɺ ࣮ࡍԿΛͲ͏͍͏ॱ൪Ͱߦ͑͹Α͍͔෼͔Β ͳ͔ͬͨ

  41. ࣮ફʹ࢖ͬͨຊ RUNNING LEAN ࠷΋࣮ફతͳຊ

  42. ৺͕͚ͨ͜ͱ ࢥ͍ࠐΈΛͳ͘͢ ૝ఆϢʔβͱ௚઀࿩͢ ࡞Γա͗ͳ͍

  43. Ͳ͏΍ͬͯ࡞͔ͬͨ ର໘ or ϏσΦνϟοτ(GoogleϋϯάΞ΢τ, FaceTime)ͰΠϯλϏϡʔˍσϞݟͤΔ ൓ԠΛݩʹαʔϏεΛमਖ਼ 10໊ʹͳΔ·Ͱ܁Γฦ͠

  44. Θ͔ͬͨ͜ͱ ͬ͘͡Γ΍Δͱ͔ͳΓ͕͔͔࣌ؒͬͯ͠·͏ ΠϯλϏϡʔ͸5໊΍Ε͹෼͔Δ λʔήοτ͕มΘΔͱ͢΂ͯ΍Γ௚͠ ͦΜͳʹΠϯλϏϡʔϢʔβ͸Կճ΋ձͬͯ͘Εͳ͍ ϢʔβͰ͸ͳ͘ސ٬(ܾࡁ͢Δਓ)ʹ௚઀Ξϓϩʔν͢ Δ ఆੑతݕূ͸ਓؒྗ͕ඞཁ

  45. ࢥͬͨΑΓ΋͕͔͔࣌ؒͬͯ͠·ͬͨ RUNNING LEANͰ͸1िؒ10ʙ15ਓͱͷ͜ͱ ΠϯλϏϡʔ͸5໊΍Ε͹܏޲͕Θ͔Δ

  46. λʔήοτ͕ϏδωεϞσϧͷશͯΛܾఆ͢Δ 1. λʔήοτ = ΞʔϦʔΞμϓλʔ 2. ՝୊ 3. ιϦϡʔϦϣϯ 4.

    ϓϥΠγϯά 5. ൢചνϟϯωϧ ! WP੍࡞ऀɺϒϩΨʔɺWeb੍࡞ձࣾͱ3ͭͷλʔήοτΛࢼ ͨͨ͠ΊϦʔϯΩϟϯόε΋3ͭݕূ͢Δඞཁ͕͋ͬͨ
  47. ΠϯλϏϡʔϢʔβ͸Կճ΋ձͬͯ͘Εͳ͍ RUNNING LEANͰ͸3ճͷΠϯλϏϡʔΛ࣮ࢪ͢Δ 1. ՝୊ΠϯλϏϡʔ 2. ιϦϡʔγϣϯΠϯλϏϡʔ 3. MVPΠϯλϏϡʔ ૬౰αʔϏεΛࢥͬͯ͘ΕΔΞʔϦʔΞμϓλʔͰͳ͚Ε͹࣌

    ؒΛׂ͍ͯ͘Εͳ͍ ٯʹͦΕ΄Ͳ೤৺Ͱͳ͍ͱΞʔϦʔΞμϓλʔͱࢥͬͯ͸͍͚ ͳ͍ͷ͔΋͠Εͳ͍ɻ՝୊ΠϯλϏϡʔஈ֊ͰΞʔϦʔΞμϓ λʔΛݟۃΊͳ͍ͱ͍͚ͳ͍ͷ͕ͭΒ͍ͱ͜Ζɻ
  48. ఆੑతݕূ͸ਓؒྗ͕ඞཁ ΠϯλϏϡʔͰσϞΛݟͤͯNOͱ͍͏ਓ͸͋·Γ͍ͳ͍ ೔ຊਓత܏޲Λݟൈ͘ྗ͕ඞཁͩͬͨ ʮ(ଞͷਓ)ͩͬͨΒ͋Γ͡Όͳ͍Ͱ͔͢Ͷʯʮ(΋ͬͱ҆ ͘)ͩͬͨΒ͋Γ͔ͳ͊ʯ͸࣮͸ͦͷਓ͸λʔήοτʹͳ Βͳ͔ͬͨূڌ ࢥ͍ࠐΈΛফ͢ͷ͸΄Μͱ͏ʹ೉͍͠ ྲྀߦͬͯཉ͍͠ͱࢥ͏যΓ ࠓ·Ͱ࢖ͬͨ࣌ؒΛ੯͍͠ͱࢥͬͯ͠·͏ ΞυόΠβʔʹೖͬͯ΋Β͚ͬͨͲ΍ͬͺΓ೉͔ͬͨ͠

  49. ސ٬(ܾࡁ͢Δਓ)ʹ௚઀Ξϓϩʔν͢Δ YOU Ϣʔβ(WP੍࡞ऀ) ސ٬ ΠϯλϏϡʔ αʔϏε঺հ ظ଴ͨ͠ൢച νϟϯωϧ YOU Ϣʔβ݉ސ٬

    ࠓճ ཧ૝
  50. ࠓޙ͍͖͍ͯͨ͠ࣄ 1Ϟσϧ1ϲ݄Ͱ݁ՌΛग़͢ɻμϝͳΒ࣍΁ ΠϯλϏϡʔ5໊ ϞοΫ࡞੒ ՝୊ΠϯλϏϡʔˍιϦϡʔγϣϯΠϯλϏϡʔ ৚݅Λຬͨͤͳ͚Ε͹ૉૣ࣍͘ͷαʔϏεʹҠΔ Ұٿೖࠢ͸΍Ίͯɺ͔ͨͨ͠ʹΞϓϩʔν͢Δ ෳ਺αʔϏεΛಉ࣌ʹΞϓϩʔνɺऩೖΛ֬อͭͭ͠

  51. ϛχϚϜελʔτΞοϓͷ ͢͢Ί ϦεΫΛͱΒͣʹϦʔϯελʔτΞοϓͷΞϓϩʔ νΛऔΔͷ͸Մೳ ΤϯδχΞͰ͋Ε͹1ͭαʔϏεΛϛχϚϜελʔ τΞοϓͯ͠ΈΔͱ͍ͩͿੈքΛ࡞͍ͬͯΔײ֮ ʹͳΔ͸ͣ

  52. ϦεΫͱεϐʔυͷؔ܎ εϐʔυ ϦεΫ ௿͍ ߴ͍ ஗͍ ଎͍ ੜ׆අ ҆ఆ ෆ҆ఆ

  53. Thanks! ϛχϚϜελʔτΞοϓ͠Α͏ʂ

  54. QA αʔϏε঺հฤ ςΫχΧϧฤ Ϧʔϯͳख๏ͷϏδωεฤ