我在本地的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 location的函数调用,这就是错误发生的原因,我想。好的,我删除了这个文件。然而,我不知道其他的问题。
但是我现在需要做什么呢?如何重新启动该过程?我再次运行git push heroku master,但得到:
C:\sbox\ruby\Sites\Heroku\Cards>git push heroku master
Everything up-to-date没有什么是有效的,但是Heroku说所有的东西都是最新的。
有没有办法在Heroku服务器上查看我所有的应用程序文件,就像在共享主机上查看文件一样?
发布于 2013-04-29 06:29:38
尝试添加带有一些小更改的提交,比如Readme更改或其他。它应该会迫使heroku重新部署你的应用程序。
https://stackoverflow.com/questions/16268671
复制相似问题