GitDeployHub

problemfactory/paigram

github.com/problemfactory/paigram ↗
Python
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)

  • DEBUG debug 开关
  • DB_HOST MySQL
  • DB_PORT
  • DB_USERNAME
  • DB_PASSWORD secret
  • DB_DATABASE
  • REDIS_HOST Redis
  • REDIS_PORT
  • REDIS_DB
  • REDIS_PASSWORD secret
  • BOT_TOKEN secret 联系 https://t.me/BotFather 使用 /newbot 命令创建机器人并获取 token
  • ADMINS bot 管理员
  • LOGGER_NAME logger 配置 可选配置项
  • LOGGER_WIDTH 打印时的宽度
  • LOGGER_LOG_PATH log 文件存放目录
  • LOGGER_TIME_FORMAT log 时间格式,参考 datetime.strftime
  • LOGGER_RENDER_KEYWORDS log 高亮关键词
  • LOGGER_TRACEBACK_MAX_FRAMES traceback 相关配置
  • LOGGER_LOCALS_MAX_DEPTH
  • LOGGER_LOCALS_MAX_LENGTH
Best match Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/problemfactory/paigram
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/problemfactory/paigram
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/problemfactory/paigram
Or deploy to a different host
← Try another repo