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

役に立つかもしれないShifter Tips / Usefull Shifter Tips

役に立つかもしれないShifter Tips / Usefull Shifter Tips

2020/10/7開催
Shifter オンラインミートアップ Shifter Static 再入門で発表したスライドです。

https://eventregist.com/e/j5hDZNT8XzHv

Takuya Tachibana

October 07, 2020
Tweet

More Decks by Takuya Tachibana

Other Decks in Technology

Transcript

  1. ヘプタゴン ⽴花 拓也
    #JP_GetShifter
    役に⽴つかもしれない Shifter Tips
    Shifter オンラインミートアップ Shifter Static 再⼊⾨

    View full-size slide

  2. ࣗݾ঺հ
    ཱՖ ୓໵ (36)
    @biatunky
    ੨৿ग़਎ઋ୆ܦ༝੨৿ݝࡏॅ݁ߏઋ୆
    ϔϓλΰϯ୅දऔక໾
    Shifter Partner NetworkՃೖ
    ࢓ࣄɿ
    ݏͳ͜ͱɿ
    WordPressͷΠϯετʔϧը໘Λग़͢͜ͱ
    Ί͕Ͷ͞Μͷ௚ޙʹLT͢Δ͜ͱ

    View full-size slide

  3. ૣ࣏ͯ͘͠ʂ
    Fatal error!!
    Dan! Please fix it! :)

    View full-size slide

  4. Shifter Life͕ศརʹͳΔ͔΋͠Εͳ͍খٕΛ঺հ

    View full-size slide

  5. 1 webhook
    ShifterͰ࢖͑Δwebhook
    - WordPressͷىಈ(boot)͢ΔλΠϛϯά
    - هࣄͷੜ੒(Generate)͢ΔλΠϛϯά

    View full-size slide

  6. 1 webhook
    - هࣄͷੜ੒(Generate)͢ΔλΠϛϯά
    ɹɹShifterͷμογϡϘʔυ͔Βઃఆ
    NetlifyͳͲͷ֎෦αʔϏεͱͷ࿈ܞͰ࢖͑Δ

    View full-size slide

  7. 1 webhook
    - WordPressͷىಈ(boot)͢ΔλΠϛϯάɹɹ
    ɹWordPressͷμογϡϘʔυ͔Βઃఆ
    →WordPress΁ͷϩάΠϯURL΋ؚΊΒΕΔ
    ShifterͷΞΧ΢ϯτΛ࣋ͨͳ͍ํ΁ͷ௨஌ͳͲͰ࢖͑Δ

    View full-size slide

  8. https://www.getshifter.io/ja/blog/shifter-webhook-codedeploy-auth0-s3
    1 webhook
    ͜Μͳ͜ͱ΋ʂ

    View full-size slide

  9. 1 webhook
    Shifterͷߋ৽࣌ʹSlack΁௨஌ͯ͠ΈΔ

    View full-size slide

  10. 1 webhook
    Shifterͷߋ৽࣌ʹSlack΁௨஌ͯ͠ΈΔ
    (͍Ζ͍ΖؤுͬͨͰ͋Ζ͏ܗ੻΋͝ཡ͍ͩ͘͞)

    View full-size slide

  11. 1 webhook
    Shifterͷߋ৽࣌ʹSlack΁௨஌ͯ͠ΈΔ
    - boot࣌ͷwebhook͸
    αχλΠζ͞Εͯ͠·͍͏·͘ૹΕͳ͔ͬͨ
    - ͪΌΜͱ࡞ΓࠐΈ͍ͨ৔߹͸ɺ
    ͪΌΜͱॲཧ͢ΔAPIΛט·ͤͨํ͕٢
    ஫ҙ఺

    View full-size slide

  12. 1 webhook
    ৄࡉ͸ Shifter Advent Calendar 2019
    https://qiita.com/biatunky/items/8655fee1877163aa51a3

    View full-size slide

  13. 2 WordPress on ShifterͷςʔϚͷ࡟আ

    View full-size slide

  14. 2 WordPress on ShifterͷςʔϚͷ࡟আ
    Έͳ͞ΜɺςʔϚͷ؅ཧͬͯͲ͏ͯ͠ΔΜͰ͔͢ʁ

    View full-size slide

  15. ߋ৽ස౓͕͋·Γଟ͘ͳ͍ͷͰɺࡶʹ؅ཧதw

    View full-size slide

  16. ͦͯ͠ফͦ͏ͱࢥ͏ͱͳ͔ͥΤϥʔʹͳΔ
    ʢඞࢮͷ఍߅ʣ

    View full-size slide

  17. ϑΝΠϧͷ؅ཧΛߦ͏ϓϥάΠϯ͸ShifterͰ΋࢖͑Δ
    αϙʔτͷtsunoda͞Μ͋Γ͕ͱ͏͍͟͝·͢mm

    View full-size slide

  18. ڧ੍࡟আʂ

    View full-size slide

  19. 3 ShifterͷΞΫηεϩάΛग़ྗ

    View full-size slide

  20. 3 ShifterͷΞΫηεϩάΛग़ྗ

    View full-size slide

  21. 3 ShifterͷΞΫηεϩάΛग़ྗ
    ࣗ෼ͷAWSΞΧ΢ϯτͷS3ʹ
    ShifterͷCloudFrontͷΞΫηεϩά͕ग़ྗͰ͖Δʂ
    (WAFͷΞΫηεϩά΋͓଴͍ͪͯ͠·͢)

    View full-size slide

  22. GoogleAnalyticsͰ͸ۤखͳ৘ใ΋औಘՄೳʹ
    - ಈը΍ը૾ͳͲλάΛຒΊࠐΊͳ͍ϑΝΠϧ΋ଌఆͰ͖Δ
    - ؆୯ʹ઀ଓݩIP΍UserAgentͷ෼ੳ͕Ͱ͖Δ
    - CloudFrontͷΩϟογϡঢ়گΛ೺ѲͰ͖Δ
    - ϨεϙϯελΠϜͷՄࢹԽ͕Ͱ͖Δ
    - HTTPεςʔλεΛݟͯΤϥʔϨʔτ͕ՄࢹԽͰ͖Δ
    - ΤϥʔϨʔτ͕͕͋ͬͯͳ͍͔ͳͲҟৗݕ஌͕͠΍͍͢
    - ؂ࠪ༻ͷΞΫηεϩάΛอଘͰ͖Δ
    3 ShifterͷΞΫηεϩάΛग़ྗ

    View full-size slide

  23. →ಈը
    →ը૾

    View full-size slide

  24. 3 ShifterͷΞΫηεϩάΛग़ྗ
    Athenαͱ࿈ܞͯ͠ΫΤϦͰϩάͷ෼ੳͯ͠ΈͨΓ

    View full-size slide

  25. 3 ShifterͷΞΫηεϩάΛग़ྗ
    QuickSightͳͲͷBIπʔϧͰՄࢹԽΛͯ͠ΈͨΓ

    View full-size slide

  26. շదͳShifter LifeΛʂʂ

    View full-size slide