我的本地 Windows XP 机器上有一个可用的 Rails 应用程序。我想把它上传到 Heroku。我遵循本教程https://devcenter.heroku.com/articles/rails3。
当我跑git push heroku master
时,它失败了:
-----> 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
我现在该怎么办?
我看了日志,有一些类似的问题:
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
位置的函数调用,这就是错误发生的原因,我想。好的,我删除了文件。不过,不知道其他问题。
但是我现在需要做什么?如何重新开始这个过程?我又跑git push heroku master
了,但得到了:
C:\sbox\ruby\Sites\Heroku\Cards>git push heroku master
Everything up-to-date
没有任何效果,但 Heroku 说一切都是最新的。
有没有办法像在共享主机上查看文件一样查看我在 Heroku 服务器上的所有应用程序文件?