- Setup fly.io account
- Setup flyctl (fly.io cli)
- Cli sign-in
- Create bot on Telegram
- Get bot Token (API key) from @BotFather
- put bot Token on
.env
. see.env_sample
- Create fly.io app project.
- write app project ID on
fly.toml
. seefly.toml.sample
- put your bot Token on Fly.io App's Secrets.
- It works as env vars.
- write app project ID on
- bash completion of makefile target - Stack Overflow
- I'm using Makefile. Installing
bash-completion
is good.
- I'm using Makefile. Installing
$ make 1-cargo-run
$ make 2-build-image
$ make 3-run-dev
If anything gone wrong, make sure with
$ sudo docker run -it teloxide-on-fly-io bash
$ make 4-deploy