git push heroku高手似乎没有工作 [英] git push heroku master doesn't seem to work

查看:133
本文介绍了git push heroku高手似乎没有工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循railstutorial.org上的指南。当我在标题上键入命令时,出现此错误。



计数对象:66,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(52/52),完成。
写作对象:100%(66/66),86.47 KiB,完成。
总计66(delta 3),重用0(delta 0)

-----> Heroku接收推送
----- > Rails应用程序检测到
----->检测到Rails未设置为提供static_assets
安装rails3_serve_static_assets ... done
----->检测到Gemfile,运行Bundler版本1.0。 0
检测到未解析的依赖关系;正在安装...
您在开发过程中修改了您的Gemfile,但没有将生成的快照(Gemfile.lock)的
转换为版本控制



<$ p $您已添加到Gemfile:
* sqlite3-ruby(= 1.3.7)

您已从Gemfile中删除:
* sqlite3 -ruby(= 1.2.5)
失败:http://docs.heroku.com/bundler

! Heroku推送拒绝,未能通过Bundler安装宝石



错误:hooks / pre-receive退出,错误代码为1
至git@heroku.com:morning-山-34.git
! [远程拒绝]主人 - >主人(预先接收钩子拒绝)
错误:未能将一些裁判推送到'git@heroku.com:morning-mountain-34.git'



然后当我输入:

$ heroku打开



我得到一个山地:http://morning-mountain-34.heroku.com/这不应该是这种情况:应该是first_app

解决方案

找到了解决方案:首先,问题的发生可能是因为我之前犯的很多错误,我一直在关闭终端。



所以事情可能被禁用。比如git initgit add。和git commit -m我真的不知道哪一个,但做完所有这些之后,输入:git push heroku master。



它终于完成了,当我键入:heroku打开。它仍然开放到早上山34,但它现在包含我的第一个应用程序(这只是它在指南上的那个:))

I am following the guide on railstutorial.org. I get this error when I type the command on the title.

Counting objects: 66, done. Delta compression using up to 2 threads. Compressing objects: 100% (52/52), done. Writing objects: 100% (66/66), 86.47 KiB, done. Total 66 (delta 3), reused 0 (delta 0)

-----> Heroku receiving push -----> Rails app detected -----> Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----> Gemfile detected, running Bundler version 1.0.0 Unresolved dependencies detected; Installing... You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control

   You have added to the Gemfile:
   * sqlite3-ruby (= 1.3.7)

   You have deleted from the Gemfile:
   * sqlite3-ruby (= 1.2.5)
   FAILED: http://docs.heroku.com/bundler

! Heroku push rejected, failed to install gems via Bundler

error: hooks/pre-receive exited with error code 1 To git@heroku.com:morning-mountain-34.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:morning-mountain-34.git'

then when i type:

$ heroku open

I get a mountain site:http://morning-mountain-34.heroku.com/ which isn't supposed to be the case: should be first_app

解决方案

found the solution:

first the problem occured possibly because of the so many mistakes I made earlier that I kept on closing the terminal.

so things were probably disabled. like "git init" "git add ." and "git commit -m" I don't really know which one but after doing all those and typing: git push heroku master.

It finally went through and when I type: heroku open. it still opens to morning-mountain-34 but it contains my first app now (which is nothing but its the one on the guide too :))

这篇关于git push heroku高手似乎没有工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆