Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku使用bitbucket管道部署_Heroku_Bitbucket - Fatal编程技术网

Heroku使用bitbucket管道部署

Heroku使用bitbucket管道部署,heroku,bitbucket,Heroku,Bitbucket,我正在尝试使用Bitbucket管道功能将node.js项目部署到Heroku。脚本(取自文档)为: 我已为API密钥和项目名称设置了环境变量,但出现以下错误: + git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master fatal: remote part of refspec is not a valid name in .git 我在这里做错了什么?当我复制app_name环境变

我正在尝试使用Bitbucket管道功能将node.js项目部署到Heroku。脚本(取自文档)为:

我已为API密钥和项目名称设置了环境变量,但出现以下错误:

+ git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master
fatal: remote part of refspec is not a valid name in .git

我在这里做错了什么?

当我复制app_name环境变量时,我用一个尾随空格复制了它,这就是错误。

这会起作用,但根据我的经验,到目前为止,令牌每8小时过期一次,所以你必须找到一个不同的解决方案。

这种情况似乎不再存在
+ git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master
fatal: remote part of refspec is not a valid name in .git