heroku部署问题,返回:致命:没有指定路径

时间:2013-03-31 21:46:58

标签: ruby-on-rails git deployment heroku

我是一名Windows用户,他一直在学习Michael Hartl的Ruby on Rails教程(http://ruby.railstutorial.org/chapters/ruby-on-rails-tutorial),我一直在完美地关注所有内容,直到我尝试将应用程序部署到heroku:

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

1 个答案:

答案 0 :(得分:1)

这与使用“ssh://”前缀和存储库名称中的相对语法的组合有关。似乎与使用的gitolite有关。斜杠的缺失加上“ssh://”前缀似乎混淆了它。

  • ssh:// git @ server:relative - NO
  • git @ server:relative - YES
  • ssh:// git @ server / relative - MAYBE(gitolite对此很满意)
  • ssh:// git @ server:/ relative - MAYBE(gitolite对此很满意)
  • ssh:// git @ server / absolute - 是

希望这有帮助。