前提・実現したいこと
railsでぐるなびapiからカフェを検索するwebサイトを作りました。
cloud9からherokuでデプロイしようとしてますが、git push heroku masterでデプロイできません。
他のプロジェクトではいままでデプロイできていたのですが、初めてできなくなってしまってわかりません。
プログラミングスクール受講後の初心者です。
発生している問題・エラーメッセージ
:67:in `block (2 levels) in define' remote: /tmp/build_16e8e4a015cd4bb8f7d78cbab41d05c1/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>' remote: Tasks: TOP => assets:precompile remote: (See full trace by running task with --trace) remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to hakadoru. remote: To https://git.heroku.com/hakadoru.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/hakadoru.git' ec2-user:~/environment/hakadoru (master) $
エラー箇所
赤文字の部分
Precompiling assets failed.
赤文字の前のログの怪しい箇所
Sass::SyntaxError: File to import not found or unreadable: bootstrap.
試したこと
いろいろ調べてconfig/production.rbに下記を追記すると良さそうな記事を見つけたので書いてみましたが、解消されませんでした。
config.assets.initialize_on_precompile = false
補足情報(gemfile,database.yml)
gemfile
group :production do gem 'pg', '0.21.0' end
database.yml
production: adapter: postgresql encoding: unicode pool: 5 database: hakadoru_production username: hakadoru password: <%= ENV['HAKADORU_DATABASE_PASSWORD'] %>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。