タダです.
前回からの続きです.ローカルで The next-generation Slack platform のローカル開発するのをやってみました.この記事では開発したのをデプロイしてみます.
ローカルからデプロイする
slack deploy
で Slack platform にデプロイできました.
❯ slack deploy ? Choose a deployed environment taddyteam hogehoge hogehoge 📚 App Manifest Updated app manifest for "hello-world-app" in "taddyteam" 🏠 App Install Installing "hello-world-app" app to "taddyteam" Updated app icon: assets/default_new_app_icon.png Finished in 4.0s ⚡ Listing triggers installed to the app... There are no triggers installed for the app ⚡ Create a trigger Searching for trigger definition files under 'triggers/*'... Found 1 trigger definition file ? Choose a trigger definition file: triggers/greeting_trigger.ts ⚡ Trigger successfully created! Send a greeting ABCDEFG (shortcut) Created: 2024-01-17 22:48:47 +09:00 (0 seconds ago) Collaborators: Sadayoshi Tada @tada hoge Can be found and used by: everyone in the workspace https://slack.com/shortcuts/ABCDEFG/hogeghogehoge 🎁 App packaged and ready to deploy 0.016MB was packaged in 0.5s 🚀 hello-world-app deployed in 8.6s Dashboard: https://slack.com/apps/hoge App Owner: tada (hoge) Workspace: taddyteam (hogehoge) 🌩 Visit Slack to try out your live app! When you make any changes, update your app by re-running slack deploy 💌 We would love to know how things are going Survey your development experience with slack feedback --name platform-improvements
超簡単に Slack App ができました 🎊
動作確認
slack deploy
時に出ていたショートカット用のURL( https://slack.com/shortcuts/ABCDEFG/hogeghogehoge
) をポストするとローカル開発と同じように hello world app が起動してきました.その後,Start Workflow
からメッセージの投稿もできたので動作確認ができました.
まとめ
一旦この記事までで Slack CLI からテンプレートで Slack App を作りそこから App をSlack platform 上にデプロイして使うことができました.引き続き慣れるためにいろんな学習コンテンツをさらった内容を備忘録に記録してきます.