如果出现“git push heroku master"怎么办失败的? [英] What to do if "git push heroku master" failed?

查看:62
本文介绍了如果出现“git push heroku master"怎么办失败的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地 Windows XP 机器上有一个可用的 Rails 应用程序.我想把它上传到 Heroku.我遵循本教程 https://devcenter.heroku.com/articles/rails3.

I have a working Rails app on my local Windows XP machine. I want to upload it on Heroku. I follow this tutorial https://devcenter.heroku.com/articles/rails3.

当我运行 git push heroku master 时,它失败了:

When I ran git push heroku master, it failed:

-----> Ruby/Rails app detected
-----> WARNING: Removing `Gemfile.lock` because it was generated on Windows.
       Bundler will do a full resolve so native gems are handled properly.
       This may result in unexpected gem versions being used in your app.
-----> Installing dependencies using Bundler version 1.3.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin
       Fetching gem metadata from https://rubygems.org/...........
       Fetching gem metadata from https://rubygems.org/..
       Resolving dependencies...
Received disconnect from 50.19.85.132: 10: user closed connection
fatal: The remote end hung up unexpectedly

我现在该怎么办?

我看到了日志,有一些像这样的问题:

I saw the log, there are some issues like these ones:

2013-04-28T21:18:03.384881+00:00 app[web.1]: /app/app/assets/images/cards/resize.rb:23:in `open': No such file or directory -
 C:\sbox\ruby\cards2 (Errno::ENOENT)

2013-04-28T21:18:03.385662+00:00 app[web.1]:    from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in
`wrapped_app'

2013-04-28T21:18:04.689716+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-28T21:18:05.596424+00:00 heroku[web.1]: Process exited with status 1
2013-04-28T21:28:27.556270+00:00 heroku[web.1]: State changed from crashed to starting

2013-04-28T21:28:29.459229+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 3598`

2013-04-28T21:18:03.385424+00:00 app[web.1]:    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/con
figurable.rb:30:in `method_missing'

2013-04-28T21:28:34.613321+00:00 app[web.1]:    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/con
figurable.rb:30:in `method_missing'

我删除了 resize.rb:23 文件.它用于重新调整图像大小,应用程序不使用,我只是将其留在开发中并在将我的应用程序上传到 Heroku 时忘记删除.在我的本地机器上,它不是自己运行的,但是 Heroku 出于某种原因启动了它.有一个对 C:\sbox\ruby\cards2 位置的函数调用,这就是发生错误的原因,我想.好的,我删除了文件.不过,不知道其他问题.

I removed resize.rb:23 file. It is for re-sizing images, app doesn't use, I just left it there on development and forgot to delete when uploaded my app on Heroku. On my local machine it is not run by itself, but Heroku for some reason started it. There was a function call to C:\sbox\ruby\cards2 location and that's why the error happened, I thought. Ok, I removed the file. Do not know, though, about other issues.

但是我现在需要做什么?如何重新开始该过程?我再次运行 git push heroku master 但得到:

But what do I need to do now? How to start the process again? I ran git push heroku master again but got:

C:\sbox\ruby\Sites\Heroku\Cards>git push heroku master
Everything up-to-date

没有任何效果,但 Heroku 说一切都是最新的.

Nothing works but Heroku says that everything is up-to-date.

有没有办法像在共享主机上查看文件一样,在 Heroku 服务器上查看我的所有应用文件?

Is there a way to see all my app files on Heroku server the way you can see your files on shared hosting?

推荐答案

尝试添加带有一些小的更改的提交,例如自述文件更改或其他内容.它应该强制 heroku 重新部署您的应用.

Try adding a commit with some small change, like a Readme change or something. It should force heroku to re-deploy your app.

这篇关于如果出现“git push heroku master"怎么办失败的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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