2016-08-21 3 views
1

내 Heroku가 응용 프로그램에 buildpack을 추가하려고하지만,는`buildpacks`는 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 
를 실행 해요 아니다

얻을 수 있습니다.

심지어

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 

참고 도움말 항목에서 buildpacks의 부족. set 명령이 상자 밖으로 작동합니다 : 내 Heroku가 버전

heroku-toolbelt/3.25.0 (x86_64-linux) ruby/2.2.4 

에게 Heroku의 buildpacks 페이지는 Heroku가의 buildpacks 같은 소리하게 보여줍니다. 누구든지이 기능이 내 컴퓨터에 존재하지 않는 이유를 알고 있습니까? 내 응용 프로그램은 레일 (4.0.3)의 루비 (2.2.4)이고 우분투 14.04를 실행하고 있습니다. 미리 감사드립니다.

답변

1

어제이 문제가있었습니다. 꽤 오래된 버전의 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를 설치하지 않았지만 시스템에 오래된 영웅 보석이있을 가능성이 있습니다. 보석을 제거하십시오.

나는 gem uninstall 'heroku'를 실행하고 여기에서 설치 프로그램을 실행 : https://devcenter.heroku.com/articles/heroku-cli 다음 gem install 'heroku'을 다음 buildpack의 Heroku가 명령은 나를 위해 일하기 시작했다.