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

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

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

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

1189閲覧

SyntaxErrorがでてherokuにpushできない。

退会済みユーザー

退会済みユーザー

総合スコア0

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2019/10/26 05:56

前提・実現したいこと

herokuにpushしたい。

###エラーメッセージ

ruby

1 ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. 2 Detected buildpacks: Ruby,Node.js 3 See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order 4-----> Ruby app detected 5-----> Compiling Ruby/Rails 6-----> Using Ruby version: ruby-2.6.4 7-----> Installing dependencies using bundler 1.17.3 8 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 9 The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 10 Fetching gem metadata from https://rubygems.org/............ 11 12 ...... 13 14 Please check your Rails app for 'config.i18n.fallbacks = true'. 15 If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 16 'config.i18n.fallbacks = [I18n.default_locale]'. 17 If not, fallbacks will be broken in your app by I18n 1.1.x. 18 19 For more info see: 20 https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 21 22 Post-install message from sass: 23 24 Ruby Sass has reached end-of-life and should no longer be used. 25 26 * If you use Sass as a command-line tool, we recommend using Dart Sass, the new 27 primary implementation: https://sass-lang.com/install 28 29 * If you use Sass as a plug-in for a Ruby web framework, we recommend using the 30 sassc gem: https://github.com/sass/sassc-ruby#readme 31 32 * For more details, please refer to the Sass blog: 33 https://sass-lang.com/blog/posts/7828841 34 35 Bundle completed (200.70s) 36 Cleaning up the bundler cache. 37 The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 38-----> Installing node-v10.15.3-linux-x64 39-----> Installing yarn-v1.16.0 40-----> Detecting rake tasks 41 ! 42 ! Could not detect rake tasks 43 ! ensure you can run `$ bundle exec rake -P` against your app 44 ! and using the production group of your Gemfile. 45 ! rake aborted! 46 ! SyntaxError: /tmp/build_db96f59c072b977253449d336995ebf3/config/application.rb:33: syntax error, unexpected end-of-input, expecting end 47 48 ...... 49 50 ! Push rejected, failed to compile Ruby app. 51 ! Push failed 52

試したこと

config/application.rbは下記の通りですがエラー箇所がみつかりませんでした。

require_relative 'boot' require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" require "active_record/railtie" require "active_storage/engine" require "action_controller/railtie" require "action_mailer/railtie" require "action_mailbox/engine" require "action_text/engine" require "action_view/railtie" require "action_cable/engine" require "sprockets/railtie" # require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module Amazonlist2 class Application < Rails::Application config.load_defaults 6.0 config.i18n.default_locale = :ja config.action_view.field_error_proc = Proc.new { |html_tag, instance| html_tag } config.assets.compile = true config.assets.initialize_on_precompile=false config.generators do |g| g.stylesheets false g.javascripts false g.helper false g.test_framework :rspec, fixtures: false, view_specs: false, helper_specs: false, routing_specs: false, controller_specs: false, request_specs: false g.fixture_replacement :factory_bot, dir: "spec/factories" end end end

補足情報(FW/ツールのバージョンなど)

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問