Ask A Question

Notifications

You’re not receiving notifications from this thread.

I get error when deploy to heroku

Medves Larisa Viviana asked in General

I get error when deploy to heroku
Here is the log file:

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: Ruby,Node.js
See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Installing bundler 2.2.33
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-3.0.2

WARNING:
   Removing `Gemfile.lock` because it was generated on Windows.
   Bundler will do a full resolve so native gems are handled properly.
   This may result in unexpected gem versions being used in your app.
   In rare occasions Bundler may not be able to resolve your dependencies at all.

   https://devcenter.heroku.com/articles/bundler-windows-gemfile

-----> Installing dependencies using bundler 2.2.33
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin bundle install -j4
Fetching https://github.com/eventmachine/eventmachine.git
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies.....
Fetching rake 13.0.6
Installing rake 13.0.6
Fetching concurrent-ruby 1.1.9
Fetching minitest 5.15.0
Fetching builder 3.2.4
Fetching erubi 1.10.0
Installing minitest 5.15.0
Installing erubi 1.10.0
Installing builder 3.2.4
Installing concurrent-ruby 1.1.9
Fetching racc 1.6.0
Fetching crass 1.0.6
Installing racc 1.6.0 with native extensions
Fetching rack 2.2.3
Installing crass 1.0.6
Installing rack 2.2.3
Fetching nio4r 2.5.8
Installing nio4r 2.5.8 with native extensions
Fetching websocket-extensions 0.1.5
Fetching marcel 1.0.2
Installing marcel 1.0.2
Installing websocket-extensions 0.1.5
Fetching mini_mime 1.1.2
Fetching digest 3.1.0
Installing digest 3.1.0 with native extensions
Installing mini_mime 1.1.2
Fetching io-wait 0.2.1
Installing io-wait 0.2.1 with native extensions
Fetching timeout 0.2.0
Fetching strscan 3.0.1
Installing timeout 0.2.0
Fetching bcrypt 3.1.16
Installing strscan 3.0.1 with native extensions
Installing bcrypt 3.1.16 with native extensions
Fetching msgpack 1.4.5
Installing msgpack 1.4.5 with native extensions
Using bundler 2.2.33
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching thor 1.2.1
Installing thor 1.2.1
Fetching zeitwerk 2.5.4
Installing zeitwerk 2.5.4
Using eventmachine 1.2.7 from https://github.com/eventmachine/eventmachine.git (at v1.2.7@9cb13a8)
Fetching ffi 1.15.5
Installing ffi 1.15.5 with native extensions
Fetching htmlbeautifier 1.4.1
Installing htmlbeautifier 1.4.1
Fetching mini_magick 4.11.0
Installing mini_magick 4.11.0
Fetching pg 1.3.3
Installing pg 1.3.3 with native extensions
Fetching rolify 6.0.0
Installing rolify 6.0.0
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching semantic_range 3.0.0
Installing semantic_range 3.0.0
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching i18n 1.10.0
Installing i18n 1.10.0
Fetching tzinfo 2.0.4
Installing tzinfo 2.0.4
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching warden 1.2.9
Installing warden 1.2.9
Fetching rack-proxy 0.7.2
Installing rack-proxy 0.7.2
Fetching sprockets 4.0.3
Installing sprockets 4.0.3
Fetching websocket-driver 0.7.5
Installing websocket-driver 0.7.5 with native extensions
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching nokogiri 1.13.3 (x86_64-linux)
Installing nokogiri 1.13.3 (x86_64-linux)
Fetching net-protocol 0.1.2
Installing net-protocol 0.1.2
Fetching puma 5.6.2
Installing puma 5.6.2 with native extensions
Fetching bootsnap 1.10.3
Installing bootsnap 1.10.3 with native extensions
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching activesupport 7.0.2.2
Installing activesupport 7.0.2.2
Fetching loofah 2.14.0
Installing loofah 2.14.0
Fetching net-imap 0.2.3
Installing net-imap 0.2.3
Using net-pop 0.1.1
Fetching net-smtp 0.3.1
Installing net-smtp 0.3.1
Fetching ruby-vips 2.1.4
Installing ruby-vips 2.1.4
Fetching sassc 2.4.0
Fetching rails-html-sanitizer 1.4.2
Installing rails-html-sanitizer 1.4.2
Installing sassc 2.4.0 with native extensions
Fetching image_processing 1.12.2
Installing image_processing 1.12.2
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 1.0.0
Installing globalid 1.0.0
Fetching activemodel 7.0.2.2
Installing activemodel 7.0.2.2
Fetching pundit 2.2.0
Installing pundit 2.2.0
Fetching actionview 7.0.2.2
Installing actionview 7.0.2.2
Fetching activejob 7.0.2.2
Installing activejob 7.0.2.2
Fetching activerecord 7.0.2.2
Installing activerecord 7.0.2.2
Fetching actionpack 7.0.2.2
Installing actionpack 7.0.2.2
Fetching jbuilder 2.11.5
Installing jbuilder 2.11.5
Fetching friendly_id 5.4.2
Installing friendly_id 5.4.2
Fetching actioncable 7.0.2.2
Installing actioncable 7.0.2.2
Fetching activestorage 7.0.2.2
Installing activestorage 7.0.2.2
Fetching actionmailer 7.0.2.2
Installing actionmailer 7.0.2.2
Fetching railties 7.0.2.2
Installing railties 7.0.2.2
Fetching sprockets-rails 3.4.2
Installing sprockets-rails 3.4.2
Fetching actionmailbox 7.0.2.2
Installing actionmailbox 7.0.2.2
Fetching actiontext 7.0.2.2
Installing actiontext 7.0.2.2
Fetching responders 3.0.1
Installing responders 3.0.1
Fetching tailwindcss-rails 2.0.7 (x86_64-linux)
Installing tailwindcss-rails 2.0.7 (x86_64-linux)
Fetching webpacker 5.4.3
Installing webpacker 5.4.3
Fetching rails 7.0.2.2
Installing rails 7.0.2.2
Fetching devise 4.8.1
Installing devise 4.8.1
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Installing sass-rails 6.0.0
Bundle complete! 28 Gemfile dependencies, 78 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into ./vendor/bundle
Bundle completed (102.58s)
Cleaning up the bundler cache.
-----> Installing node-v16.13.1-linux-x64
-----> Installing yarn-v1.22.17
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile

   Done in 344ms.
   rake aborted!
   SassC::SyntaxError: Error: File to import not found or unreadable: tailwindcss/base.
           on line 126:1 of stdin
   >> @import "tailwindcss/base";

      ^
   stdin:126
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sassc-2.4.0/lib/sassc/engine.rb:50:in `render'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sassc-rails-2.1.2/lib/sassc/rails/compressor.rb:29:in `call'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/sass_compressor.rb:30:in `call'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:84:in `call_processor'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:65:in `reverse_each'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:65:in `call_processors'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:182:in `load_from_unloaded'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:59:in `block in load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:43:in `load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/cached_environment.rb:44:in `load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/bundle.rb:32:in `block in call'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/bundle.rb:31:in `call'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:84:in `call_processor'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:65:in `reverse_each'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/processor_utils.rb:65:in `call_processors'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:182:in `load_from_unloaded'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:59:in `block in load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/loader.rb:43:in `load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/cached_environment.rb:44:in `load'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/base.rb:81:in `find_asset'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/base.rb:88:in `find_all_linked_assets'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/manifest.rb:125:in `each'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/manifest.rb:125:in `to_a'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.3/lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `block in synchronize'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `synchronize'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `synchronize'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:19:in `execute'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promise.rb:564:in `block in realize'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:363:in `run_task'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:352:in `block (3 levels) in create_worker'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `loop'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `block (2 levels) in create_worker'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `catch'
   /tmp/build_443ce708/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `block in create_worker'
   Tasks: TOP => assets:precompile
   (See full trace by running task with --trace)

!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed

Reply

You are trying to deploy to a linux system, when your app was built using a windows based system?

Make sure you are targeting all platforms
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,110+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.