From ef323889db7f9de4ee430c1ced3145ec4838a671 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Sat, 5 Feb 2022 00:31:13 +0600 Subject: [PATCH] Fix the docs of the Heroku example --- examples/Procfile | 1 + examples/heroku_ping_pong.rs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 examples/Procfile diff --git a/examples/Procfile b/examples/Procfile new file mode 100644 index 00000000..08973ca8 --- /dev/null +++ b/examples/Procfile @@ -0,0 +1 @@ +web: ./target/release/heroku_ping_pong_bot diff --git a/examples/heroku_ping_pong.rs b/examples/heroku_ping_pong.rs index c32f52a5..909406f2 100644 --- a/examples/heroku_ping_pong.rs +++ b/examples/heroku_ping_pong.rs @@ -1,5 +1,22 @@ // The version of Heroku ping-pong-bot, which uses a webhook to receive updates // from Telegram, instead of long polling. +// +// You will need to configure the buildpack for heroku. We will be using Heroku +// rust buildpack [1]. Configuration was done by using heroku CLI. +// +// If you're creating a new Heroku application, run this: +// +// ``` +// heroku create --buildpack emk/rust +// ``` +// +// To set buildpack for existing applicaton: +// +// ``` +// heroku buildpacks:set emk/rust +// ``` +// +// [1] https://github.com/emk/heroku-buildpack-rust use teloxide::{ dispatching::{