2016-03-03 105 views
2

我正在使用與Heroku解析。 當我做「解析部署」部署新的代碼,我得到這個錯誤:(XXX以下是我在Heroku上的應用程序的名稱。)解析部署 - 無法推送到heroku git遠程(禁止錯誤)

$ parse deploy

This Node.js webhooks project will be deployed to Heroku.

Successfully set the following vars to heroku:

PARSE_MASTER_KEY ************************************hXSg

PARSE_WEBHOOK_KEY ************************************r6sU

HOOKS_URL https://xxx.herokuapp.com/

MONGOLAB_URI ********************************************************************************************p2v8

PARSE_APP_ID ************************************IqOA

remote: ! Forbidden

fatal: unable to access ' https://:[email protected]/xxx.git/ ': The requested URL returned error: 403

Unable to push to git remote: git.heroku.com/xxx.git

我怎樣才能解決這個問題呢?

謝謝。

回答

0

轉到您的Parse帳戶 - > core - > webhooks,並檢查您的應用程序在Heroku應用程序下列出。當你點擊它時,你應該被帶到heroku儀表板。如果您爲heroku使用不同的帳戶,請確保您在Access部分添加爲協作者。

0

由於@fnerdrum指出它是由Heroku的在訪問git的回購變化引起的,它在這裏提到:https://developers.facebook.com/bugs/1200175940000545/

周圍的工作建議使用Heroku的CLI工具而不是你現在正在使用從解析之一。

赫斯的我是如何做的,從OS X的終端:

  1. 首先需要回購網址。當您運行Parse CLI工具時,您會收到錯誤消息。從它那裏得到的應用程序名稱:

    Unable to push to git remote: git.heroku.com/your-app-name.git

  2. 添加遠程Git:

    heroku git:remote -a your-app-name 
    
  3. 更改推送到遠程:

    git push heroku master