我正在尝试添加一个构建包到我的heroku应用程序中,但是运行
heroku buildpacks:set third_party_buildpack返回
! `buildpacks:set` is not a heroku command.
! See `heroku help` for a list of available commands.当我跑步的时候
heroku buildpacks我得到了
! `buildpacks` is not a heroku command.
! See `heroku help` for a list of available commands.甚至
heroku help buildpacks返回相同的内容,并且
heroku help返回
Usage: heroku COMMAND [--app APP] [command-specific-options]
Primary help topics, type "heroku help TOPIC" for more details:
addons # manage addon resources
apps # manage apps (create, destroy)
auth # authentication (login, logout)
config # manage app config vars
domains # manage custom domains
logs # display logs for an app
ps # manage dynos (dynos, workers)
releases # manage app releases
run # run one-off commands (console, rake)
sharing # manage collaborators on an app
Additional topics:
certs # manage ssl endpoints for an app
drains # display drains for an app
features # manage optional features
fork # clone an existing app
git # manage git for apps
help # list commands and display help
keys # manage authentication keys
labs # manage optional features
maintenance # manage maintenance mode for an app
members # manage membership in organization accounts
orgs # manage organization accounts
pg #
pgbackups # manage backups of heroku postgresql databases
plugins # manage plugins to the heroku gem
regions # list available regions
stack # manage the stack for an app
status # check status of heroku platform
twofactor #
update # update the heroku client
version # display version请注意帮助主题中缺少构建包。我的heroku版本显示
heroku-toolbelt/3.25.0 (x86_64-linux) ruby/2.2.4heroku的buildpacks页面让它听起来像heroku的buildpacks:set命令应该开箱即用。有人知道为什么这个功能在我的机器上不存在吗?我的应用是ruby (2.2.4) on rails (4.0.3),我运行的是Ubuntu 14.04。提前谢谢。
发布于 2016-12-14 23:05:14
我昨天遇到了这个问题。原来我安装了一个相当老版本的Heroku CLI或heroku gem。
当您在终端中键入heroku --version时,您会看到什么?
从这里可以看到下面的内容:https://devcenter.heroku.com/articles/heroku-cli
$ heroku --version
heroku-toolbelt/3.43.9 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/5.2.39-010a227 (darwin-amd64) go1.6.2你应该在输出中看到heroku-
/x.y.z。如果您没有安装Heroku CLI,但已经安装了heroku CLI,那么您的系统中可能有一个旧的heroku gem -卸载gem。
我运行gem uninstall 'heroku',并从这里运行安装程序:https://devcenter.heroku.com/articles/heroku-cli,然后是gem install 'heroku',然后是buildpack heroku命令开始为我工作。
https://stackoverflow.com/questions/39067404
复制相似问题