git push heroku masterとすると下記のように表示されます。
ec2-user:~/environment/sample_app (master) $ git push heroku master
Counting objects: 16919, done.
Compressing objects: 100% (8254/8254), done.
Writing objects: 100% (16919/16919), 24.30 MiB | 16.04 MiB/s, done.
Total 16919 (delta 7444), reused 16840 (delta 7395)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.5.3
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
remote: Fetching gem metadata from https://rubygems.org/............
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Using rake 12.3.2
remote: Using concurrent-ruby 1.1.5
remote: Using minitest 5.10.3
remote: Using thread_safe 0.3.6
remote: Using builder 3.2.3
remote: Using erubi 1.8.0
remote: Using mini_portile2 2.4.0
remote: Using crass 1.0.4
remote: Using rack 2.0.7
remote: Using nio4r 2.3.1
remote: Using websocket-extensions 0.1.3
remote: Using mini_mime 1.0.1
remote: Using arel 8.0.0
remote: Using execjs 2.7.0
remote: Using bcrypt 3.1.11
remote: Using rb-fsevent 0.10.3
remote: Using ffi 1.10.0
remote: Using will_paginate 3.1.6
remote: Using bundler 1.15.2
remote: Using coffee-script-source 1.12.2
remote: Using method_source 0.9.2
remote: Using thor 0.20.3
remote: Using multi_json 1.13.1
remote: Using pg 0.20.0
remote: Using puma 3.9.1
remote: Fetching rails_serve_static_assets 0.0.5
remote: Fetching rails_stdout_logging 0.0.5
remote: Using tilt 2.0.9
remote: Using turbolinks-source 5.2.0
remote: Using i18n 0.9.5
remote: Using tzinfo 1.2.5
remote: Using nokogiri 1.10.3
remote: Using rack-test 1.1.0
remote: Using sprockets 3.7.2
remote: Using websocket-driver 0.6.5
remote: Using autoprefixer-rails 9.5.1.1
remote: Using uglifier 3.2.0
remote: Using mail 2.7.1
remote: Using bootstrap-will_paginate 1.0.0
remote: Using rb-inotify 0.10.0
remote: Using coffee-script 2.4.1
remote: Using turbolinks 5.0.1
remote: Using faker 1.7.3
remote: Using activesupport 5.1.6
remote: Using loofah 2.2.3
remote: Using sass-listen 4.0.0
remote: Using rails-dom-testing 2.0.3
remote: Using globalid 0.4.2
remote: Using activemodel 5.1.6
remote: Using jbuilder 2.7.0
remote: Using rails-html-sanitizer 1.0.4
remote: Using sass 3.7.4
remote: Using activejob 5.1.6
remote: Using activerecord 5.1.6
remote: Using actionview 5.1.6
remote: Using bootstrap-sass 3.3.7
remote: Installing rails_stdout_logging 0.0.5
remote: Using actionpack 5.1.6
remote: Using actioncable 5.1.6
remote: Using actionmailer 5.1.6
remote: Using railties 5.1.6
remote: Using sprockets-rails 3.2.1
remote: Using coffee-rails 4.2.2
remote: Using jquery-rails 4.3.1
remote: Using rails 5.1.6
remote: Using sass-rails 5.0.6
remote: Installing rails_serve_static_assets 0.0.5
remote: Fetching rails_12factor 0.0.3
remote: Installing rails_12factor 0.0.3
remote: Bundle complete! 27 Gemfile dependencies, 66 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Bundle completed (4.78s)
remote: Cleaning up the bundler cache.
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
remote: The latest bundler is 2.0.1, but you are currently running 1.15.2.
remote: To update, run gem install bundler
remote: -----> Installing node-v10.14.1-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: NameError: undefined local variable or method trues' for #<SampleApp::Application:0x0000563195abc940> remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/config/environments/production.rb:88:in
block in <top (required)>'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/railtie.rb:211:in instance_eval' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/railtie.rb:211:in
configure'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/config/environments/production.rb:1:in <top (required)>' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in
require'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in block in require' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in
load_dependency'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in require' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/engine.rb:600:in
block (2 levels) in class:Engine'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/engine.rb:599:in each' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/engine.rb:599:in
block in class:Engine'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in instance_exec' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in
run'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:59:in block in run_initializers' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in
each'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in tsort_each_child' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/initializable.rb:58:in
run_initializers'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/application.rb:353:in initialize!' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/config/environment.rb:5:in
<top (required)>'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/application.rb:329:in require' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/application.rb:329:in
require_environment!'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/application.rb:445:in block in run_tasks_blocks' remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in
block (2 levels) in define'
remote: /tmp/build_ceeca0eaaf50043b0cc4606b4feb7f2f/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => environment
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 coede-sample-app.
remote:
To https://git.heroku.com/coede-sample-app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/coede-sample-app.git'
他に必要な情報があればお申し付けください。
解決法が分かる方 よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/05/16 08:17
2019/05/16 08:20
退会済みユーザー
2019/05/16 12:41
2019/05/16 13:00
退会済みユーザー
2019/05/16 13:25