heroku - 错误 - 使用 Dart Buildpacks 设置 Heroku 环境
问题描述
我尝试使用以下命令创建应用程序:
heroku create — buildpack https://github.com/stablekernel/heroku-buildpack-dart.git
但我收到一个错误:
Creating ⬢ https://github.com/stablekernel/heroku-buildpack-dart.git... !
! Name must start with a letter, end with a letter or digit and can only contain lowercase letters, digits, and
! dashes. Name is too long (maximum is 30 characters)
我该如何解决这个问题?
我正在尝试构建自己的 Telegram 机器人。
解决方案
在不用于代码的平台上编写编程博客的问题之一是它们有时会重新格式化内容以提供帮助。
该命令不应该是
heroku create — buildpack https://github.com/stablekernel/heroku-buildpack-dart.git
反而
heroku create --buildpack https://github.com/stablekernel/heroku-buildpack-dart.git
请注意--buildpack
,其中--
表示heroku
CLI 的一个选项。
推荐阅读
- jquery - td:contains 正在创建一个新行而不是替换单元格中的值
- ansible - 如何使用listen_ports_facts模块,ansible
- jquery - ajax 调用不能在一页中使用超过 2 个选择
- c - 如何检查一个字符串是否以C中的另一个字符串结尾
- c++ - 析构函数上的虚拟传播
- graph - 多个条件和查询 cypher / apoc
- r - Rmarkdown、bookdown、texreg 和交叉引用
- python - 在散点图中添加 y=x 线
- mysql - 如何从mysql中的日期时间字符串中获取日期和时间
- c++ - 在将 Boost 1.56 移植到 1.71 后,Boost Phoenix 不能再将 qi::_1 分配给变量