0

我试图将我的 rails 应用程序上传到 heroku。它说它已上传,但是当我执行命令 heroku 打开它时,我收到了应用程序错误。另外,当我使用命令 git push heroku master 时,一切似乎都很好,直到我查看命令行并显示

警告删除 gemfile.lock 因为它是在 Windows 上生成的

不知道下一步该怎么做

这是我的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"

这里也是我的 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]
4

1 回答 1

0

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

heroku run rake db:migrate
于 2013-08-16T01:51:25.537 回答