Ruby on rails heroku部署问题,返回:致命:未指定路径
我是一名windows用户,一直在学习Michael Hartl()编写的Ruby on Rails教程,在我尝试将一个应用程序部署到heroku之前,我一直在完美地遵循这一切:Ruby on rails heroku部署问题,返回:致命:未指定路径,ruby-on-rails,git,deployment,heroku,Ruby On Rails,Git,Deployment,Heroku,我是一名windows用户,一直在学习Michael Hartl()编写的Ruby on Rails教程,在我尝试将一个应用程序部署到heroku之前,我一直在完美地遵循这一切: sample_app>git push heroku master fatal: No path specified. See 'man git-pull' for valid url syntax 我已经研究过类似的问题,所有建议的修复方案都不适用于我。一些可能有用的其他信息: sample_app>g
sample_app>git push heroku master
fatal: No path specified. See 'man git-pull' for valid url syntax
我已经研究过类似的问题,所有建议的修复方案都不适用于我。一些可能有用的其他信息:
sample_app>git remote -v
heroku [git@heroku.com:oscure-dawn-8059.git] (fetch)
heroku [git@heroku.com:oscure-dawn-8059.git] (push)
origin [git@github.com:hassankbrian/sample_app.git] (fetch)
origin [git@github.com:hassankbrian/sample_app.git] (push)
下面是.git/config的内容:
[user]
name = Brian
email = hassankbrian@gmail.com
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[branch "master"]
[remote "origin"]
url = [git@github.com:hassankbrian/sample_app.git]
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "heroku"]
url = [git@heroku.com:oscure-dawn-8059.git]
fetch = +refs/heads/*:refs/remotes/heroku/*
[heroku]
remote = heroku
这与在存储库名称中使用“ssh://”前缀和相对语法的组合有关。似乎与使用的gitolite有关。缺少斜杠加上“ssh://”前缀似乎会混淆它
- ssh://git@服务器:相对-否
- git@server:相对-是
- ssh://git@服务器/相对-可能(gitolite对此很满意)
- ssh://git@服务器:/relative-可能(gitolite对此很满意)
- ssh://git@服务器/绝对-是
希望这能有所帮助。Heroku有时无法正确设置repo/实例。所以,当我遇到heroku的这些问题时,我只需核掉当前实例,创建另一个实例,以及另一个回购协议,然后尝试向上推新的回购协议。有时我会把头撞在墙上几个小时,结果发现这是一个heorku初始化问题,除了重新创建实例之外,没有其他真正的解决方案。我确实这样做了,但它一次又一次地给了我同样的东西。我也不知道不同的应用程序可能出现了几次错误。好吧。。。我能想到的唯一一件事就是把所有的更改都推到github上,然后做一个新的克隆,然后尝试从新的本地版本创建heroku应用程序,看看这是否有帮助。您当地的git回购可能有问题。我也会留意,以防他们有什么问题。