2016-03-03 108 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