简体   繁体   English

我可以将rails应用程序加载到heroku,但是当我使用heroku open时出现应用程序错误

[英]I can load my rails app to heroku, but when I use heroku open I get an Application Error

I tried to upload my rails app to heroku. 我试图将Rails应用程序上传到heroku。 It said it uploaded but when I do command heroku open it I'm getting an Application Error. 它说它上传了,但是当我命令heroku打开它时,出现了应用程序错误。 Also when I used the command git push heroku master everything seemed fine until I looked at the command line and it said 另外,当我使用命令git push heroku master时,一切看起来都很好,直到我查看了命令行,并说

warning removing gemfile.lock because it was generated on windows 警告删除gemfile.lock,因为它是在Windows上生成的

not sure what to do next 不知道下一步该怎么做

here is my heroku logs if that helps 这是我的heroku日志,如果有帮助

2013-08-16T01:34:12.958718+00:00 heroku[api]: Enable Logplex by lanners.marshall
@yahoo.com
2013-08-16T01:34:12.972553+00:00 heroku[api]: Release v2 created by lanners.mars
hall@yahoo.com
2013-08-16T01:34:37+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-16T01:36:16.357352+00:00 heroku[api]: Scale to web=1 by lanners.marshall
@yahoo.com
2013-08-16T01:36:23.022294+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_COPPER re
source by lanners.marshall@yahoo.com
2013-08-16T01:36:23.048343+00:00 heroku[api]: Release v3 created by lanners.mars
hall@yahoo.com
2013-08-16T01:36:23.108934+00:00 heroku[api]: Add DATABASE_URL config by lanners
.marshall@yahoo.com
2013-08-16T01:36:23.134903+00:00 heroku[api]: Release v4 created by lanners.mars
hall@yahoo.com
2013-08-16T01:36:23.186940+00:00 heroku[api]: Deploy e3e9c0c by lanners.marshall
@yahoo.com
2013-08-16T01:36:23.217579+00:00 heroku[api]: Release v5 created by lanners.mars
hall@yahoo.com
2013-08-16T01:36:23+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-16T01:36:28.240140+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-16T01:36:28.241577+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-16T01:36:36.751238+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-16T01:38:10.407842+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path=/ host=frozen-reef-1255.herokuapp.com fwd="107.20.71.243"

here also is a copy of my gemfile 这也是我的gemfile的副本

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
ruby '1.9.3'
# Use sqlite3 as the database for Active Record
gem 'pg'
gem 'rails_12factor'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'bootstrap-sass', '2.3.2.0'
# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

尝试像这样在heroku上迁移数据库:

heroku run rake db:migrate

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 推送 Rails 应用程序时如何修复 heroku 的错误 - How can I fix an error with heroku when pushing Rails app 嘿,我正在尝试在 heroku 上部署一个 Rails 应用程序,当我运行 git push heroku master 时收到以下错误消息 - hey I am trying to deploy a rails app on heroku, and i get the follow error message when i run git push heroku master 我将Rails应用程序部署到了Heroku,但查看时出现错误 - I deployed my rails app to heroku but I get an error upon viewing it 如何在我的heroku托管的Ruby on Rails Web应用程序中调试“应用程序错误”? - How can I debug a “Application Error” in my heroku hosted Ruby on Rails web application? 手动运行服务器时,为什么不能连接到Heroku Rails应用程序? - Why can't I connect to my Heroku rails app when I run the server manually? 为什么我在heroku上却出现此错误,而在我的Rails应用程序中却没有开发此错误? - Why am I getting this error on heroku but not in development in my rails app? 当我将Rails应用程序部署到heroku时,外键消失了 - When I deploy my rails app to heroku a foreign key disappears 将Rails应用程序部署到heroku时如何解决错误? - How do I fix an error when deploying Rails app to heroku? 如何获取部署在 Heroku 上的 Ruby on Rails 应用程序的应用程序名称? - How can I get the application name of Ruby on Rails app deployed on Heroku? 如何在Heroku和EngineYard的Rails应用程序中使用SOAP API? - How can I use a SOAP API in my Rails app in Heroku and EngineYard?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM