【发布时间】:2016-07-28 06:51:14
【问题描述】:
我正在尝试使用 git 推送一些 ruby 代码,并且一直在中途停止。这是我的设置和我得到的错误..
root@slacker:~/ruby# git remote -v
heroku https://git.heroku.com/warm-woodland-27175.git (fetch)
heroku https://git.heroku.com/warm-woodland-27175.git (push)
root@slacker:~/ruby# ls
config.ru myapp.rb
root@slacker:~/ruby# git push heroku master
Counting objects: 4, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 398 bytes | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
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 warm-woodland-27175.
remote:
To https://git.heroku.com/warm-woodland-27175.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/warm-woodland- 27175.git'
root@slacker:~/ruby#
我仍在尝试了解 git 的来龙去脉,但我对为什么 git 无法识别我的编译文件夹中的文件扩展名感到很困惑。我认为这就是它如何获取要使用的语言、.rb .pl 等...任何帮助将不胜感激。
【问题讨论】:
标签: ruby-on-rails ruby git heroku