相关疑难解决方法(0)

'heroku'似乎不是一个git存储库

当我尝试将我的应用程序推送到Heroku时,我收到了以下回复:

fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我尝试了'heroku键:添加',但仍然会得到相同的结果.我已经为我的GitHub帐户安装了一个ssh密钥.

ssh heroku

158
推荐指数
7
解决办法
11万
查看次数

Heroku:"没有为此应用检测到默认语言"节点应用程序抛出的错误

我正在学习NodeJS,我正在学习的课程有几个项目,按部分排列.我将所有项目都放在一个主文件夹下,这也是一个git存储库.

主文件夹中的每个子文件夹都是一个节点项目,完整的package.json和相关的依赖项node_modules.问题是当我尝试将节点应用程序推送到一个这样的文件夹(todo-api)到heroku时,我收到以下错误 -

remote: Compressing source files... done.
remote: Building source:
remote: 
remote:  !     No default language could be detected for this app.
remote:                         HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote:                         See https://devcenter.heroku.com/articles/buildpacks
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to agile-forest-32749.
remote: 
To https://git.heroku.com/agile-forest-32749.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to …
Run Code Online (Sandbox Code Playgroud)

javascript git heroku node.js

7
推荐指数
6
解决办法
2万
查看次数

标签 统计

heroku ×2

git ×1

javascript ×1

node.js ×1

ssh ×1