Ruby on Railsの初心者です。
このたび、初めてアプリを作ったのですが、
Herokuで、
git push heroku masterを実行した時に、以下のようなエラーが出力されます。
ログにはヒントになるようなエラーがたくさんあるのですが、検索しても分かりません。
ベテランの方にとっては、容易な内容の質問かもしれなくて恐縮ですが、何卒ご教授いただければ幸いです。よろしくお願いします。
バージョン
ruby 2.1.3
Rails 4.2.5.1
git push heroku master を実行したログ
(中略)
remote: Bundle completed (33.88s)
remote: Cleaning up the bundler cache.
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run $ bundle exec rake -P
against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! NameError: undefined local variable or method config' for main:Object remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/config/application.rb:27:in
<top (required)>'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/Rakefile:4:in require' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/Rakefile:4:in
<top (required)>'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in load' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in
load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:689:in raw_load_rakefile' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:94:in
block in load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:176:in standard_exception_handling' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:93:in
load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:77:in block in run' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:176:in
standard_exception_handling'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:75:in run' remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/bin/rake:33:in
<top (required)>'
remote: ! vendor/bundle/bin/rake:16:in load' remote: ! vendor/bundle/bin/rake:16:in
<main>'
remote: !
remote: /app/tmp/buildpacks/ruby/lib/language_pack/helpers/rake_runner.rb:102:in load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError) remote: ensure you can run
$ bundle exec rake -Pagainst your app remote: and using the production group of your Gemfile. remote: rake aborted! remote: NameError: undefined local variable or method
config' for main:Object
(中略)
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to fast-beach-17193.
remote:
To https://git.heroku.com/fast-beach-17193.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fast-beach-17193.git'
###Gemfile
source 'https://rubygems.org'
gem 'rails', '4.2.5.1'
gem 'mysql2', '0.3.18'
gem 'sass-rails', '> 4.0.2'> 4.1.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '> 2.0'> 0.4.0', group: :doc
gem 'sdoc', '
group :development, :test do
gem 'byebug'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
end
gem 'pry-rails'
gem 'compass-rails','~> 2.0'
gem 'sprockets'
gem 'kaminari'
gem 'devise'
gem "paperclip"
gem 'jquery-turbolinks'
gem 'meta-tags'
group :production do
gem 'rails_12factor'
gem 'pg'
end
###config/application.rb
equire File.expand_path('../boot', FILE)
require 'rails/all'
Bundler.require(*Rails.groups)
module XXXXX(プロジェクト名)
class Application < Rails::Application
config.active_record.raise_in_transactional_callbacks = true
end
end
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。