mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
I have updated the capistrano docs so that the indentations are all correct and align with the numbers correctly. This one, if wanting to pout backticks round the code whilst indented, doesn't render properly. Has to be double indented. Fixes #17633.
1.4 KiB
1.4 KiB
Get Zulip notifications for your Capistrano deploys!
-
{!create-a-bot-indented.md!}
-
{!download-python-bindings.md!}
-
You can now send Zulip messages by calling the
zulip-sendutility from yourdeploy.rbconfig file. Here's some example code for sending a Zulip notification when a deployment has completed:after 'deploy', 'notify:humbug' namespace :notify do desc "Post a message to Zulip after deploy" task :humbug do run_locally "echo 'I just deployed to #{stage}! :tada:' | zulip-send \ --user capistrano-bot@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \ --site={{ api_url }} \ --stream commits --subject deployments || true" end endThe
--userand--api-keyshould be the email and API key of the Zulip bot created above. You can also put these values in a~/.zuliprcfile on your Capistrano machine. See our API docs for instructions on creating that file.
!!! tip ""
You can change the `deploy` above to another step of
your deployment process, if you'd like the notification to fire
at a different time. See [Capistrano's Before/After Hooks page][1]
for more information!
{!congrats.md!}
