質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

解決済

1回答

2535閲覧

Herokuで「git push heroku master」を実行した時のエラー

tatsuya1970

総合スコア18

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

1グッド

0クリップ

投稿2016/05/05 10:09

編集2016/05/05 10:49

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 methodconfig' 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'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '
> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '> 2.0'
gem 'sdoc', '
> 0.4.0', group: :doc
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

ikuwow👍を押しています

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

なぜだか分からないのですが、再度デプロイにした時に、stylesheetのCSSファイルに文法エラーがあると表示され、かな文字の空白を削除したら、直りました。
お騒がせしました。

投稿2016/05/07 04:04

編集2016/05/07 04:30
tatsuya1970

総合スコア18

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問