【发布时间】:2018-09-18 16:10:27
【问题描述】:
每个人实际上我都是 ROR 新手,并且在调试过程中苦苦挣扎,尤其是阅读和理解 heroku 日志
我使用 cloud 9 作为开发的 ide
我做了一个基本的笔记应用程序,成功构建后我将它部署到heroku,但是当我打开应用程序链接时它显示应用程序错误
谁能帮帮我,谢谢!
Ruby 版本
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]
Rails 版本
Rails 4.2.5
宝石文件
source 'https://rubygems.org'
ruby '2.5.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
# Use sqlite3 as the database for Active Record
# Use SCSS for stylesheets
gem 'bootstrap-sass', '~> 3.3.7'
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# 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', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
gem 'sqlite3'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
Heroku 日志 -n 300
https://drive.google.com/file/d/1-evm_rnjGHiblHGckLmGwGcmOv5yBd6-/view?usp=sharing
【问题讨论】:
-
如果您将 ruby 和 rails 版本添加到您的问题中,它可能会有所帮助。
-
出现此警告是因为您使用的是
ruby 2.4.0。更新Rails的版本应该可以正常工作了。 -
用 ruby 和 rails 版本更新问题
-
分享你的 Gemfile 和
heroku logs -n 300命令的输出。 -
@ZulhilmiZainudin 我添加了 gemfile 内容并提供了 heroku 日志,感谢您的回复
标签: ruby-on-rails heroku