- search for BotFather in telegram app.
/newbot
- Add environment variables:
- development:
CRYPTOKNIGHT_DEV_BOT_NAME
,CRYPTOKNIGHT_DEV_BOT_TOKEN
- production:
CRYPTOKNIGHT_BOT_NAME
,CRYPTOKNIGHT_BOT_TOKEN
mix
MIX_ENV=prod mix deps.get
MIX_ENV=prod mix deps.compile
MIX_ENV=prod mix compile
MIX_ENV=prod elixir --detached --sname cryptoknight -S mix
Add .env file at project root, so that docker-compose have access to these environment variables
CRYPTOKNIGHT_DEV_BOT_NAME=xxx
CRYPTOKNIGHT_DEV_BOT_TOKEN=xxx
CRYPTOKNIGHT_BOT_NAME=xxx
CRYPTOKNIGHT_BOT_TOKEN=xxx
docker-compose -f docker/docker-compose.dev.yml up --build
docker-compose -f docker/docker-compose.prod.yml up -d --build