Closed sebyx07 closed 3 years ago
Hi,
the rake assets:precompile on heroku runs twice. Is it because of tailwind or because of bin file? Or this is normal?
I would just say it is not normal
I did not investigate into your application, I can see in example that you are using the main branch and JIT, but I've tried a deploy with a simple starter app and the compilation is fine
Enumerating objects: 46, done.
Counting objects: 100% (46/46), done.
Delta compression using up to 4 threads
Compressing objects: 100% (33/33), done.
Writing objects: 100% (34/34), 39.02 KiB | 4.88 MiB/s, done.
Total 34 (delta 13), reused 4 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Deleting 6 files matching .slugignore patterns.
remote: -----> Using buildpacks:
remote: 1. https://github.com/heroku/heroku-buildpack-activestorage-preview
remote: 2. heroku/nodejs
remote: 3. heroku/ruby
remote: -----> ActiveStorage Preview app detected
remote: -----> Installing binary dependencies for ActiveStorage Preview
remote: Reusing cache
remote: Downloading packages..
remote: Installing packages.............
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: USE_YARN_CACHE=true
remote: NODE_VERBOSE=false
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): >= 14.0.0 < 17
remote: engines.npm (package.json): unspecified (use default)
remote: engines.yarn (package.json): ^1.21.1
remote:
remote: Resolving node version >= 14.0.0 < 17...
remote: Downloading and installing node 16.6.1...
remote: Using default npm version: 7.20.3
remote: Resolving yarn version ^1.21.1...
remote: Downloading and installing yarn (1.22.11)
remote: Installed yarn 1.22.11
remote:
remote: -----> Restoring cache
remote: - yarn cache
remote:
remote: -----> Installing dependencies
remote: Installing node modules (yarn.lock)
remote: yarn install v1.22.11
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
remote: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: [4/4] Building fresh packages...
remote: Done in 18.24s.
remote:
remote: -----> Build
remote:
remote: -----> Pruning devDependencies
remote: yarn install v1.22.11
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
remote: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: [4/4] Building fresh packages...
remote: warning Ignored scripts due to flag.
remote: Done in 6.19s.
remote:
remote: -----> Caching build
remote: - yarn cache
remote:
remote: -----> Build succeeded!
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.2.21
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.0.2
remote: -----> Installing dependencies using bundler 2.2.21
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote: Fetching gem metadata from https://rubygems.org/
remote: Fetching gem metadata from https://rubygems.org/............
remote: Using rake 13.0.6
remote: Using concurrent-ruby 1.1.9
remote: Using minitest 5.14.4
remote: Using zeitwerk 2.4.2
remote: Using builder 3.2.4
remote: Using erubi 1.10.0
remote: Using mini_portile2 2.6.1
remote: Using racc 1.5.2
remote: Using crass 1.0.6
remote: Using rack 2.2.3
remote: Using nio4r 2.5.8
remote: Using websocket-extensions 0.1.5
remote: Using marcel 1.0.1
remote: Using mini_mime 1.1.0
remote: Using msgpack 1.4.2
remote: Using bundler 2.2.22
remote: Using method_source 1.0.0
remote: Using newrelic_rpm 7.2.0
remote: Using pg 1.2.3
remote: Using rack-timeout 0.6.0
remote: Using thor 1.1.0
remote: Using semantic_range 3.0.0
remote: Using temple 0.8.2
remote: Using tilt 2.0.10
remote: Using turbolinks-source 5.2.0
remote: Using i18n 1.8.10
remote: Using tzinfo 2.0.4
remote: Using nokogiri 1.12.2 (x86_64-linux)
remote: Using websocket-driver 0.7.5
remote: Using mail 2.7.1
remote: Using bootsnap 1.7.7
remote: Using puma 5.4.0
remote: Using activesupport 6.1.4
remote: Using loofah 2.11.0
remote: Using slim 4.1.0
remote: Using turbolinks 5.2.1
remote: Using rack-test 1.1.0
remote: Using rack-proxy 0.7.0
remote: Using sprockets 4.0.2
remote: Using rails-dom-testing 2.0.3
remote: Using rails-html-sanitizer 1.3.0
remote: Using globalid 0.5.2
remote: Using activemodel 6.1.4
remote: Using actionview 6.1.4
remote: Using activejob 6.1.4
remote: Using activerecord 6.1.4
remote: Using actionpack 6.1.4
remote: Using actioncable 6.1.4
remote: Using activestorage 6.1.4
remote: Using actionmailer 6.1.4
remote: Using railties 6.1.4
remote: Using sprockets-rails 3.2.2
remote: Using actionmailbox 6.1.4
remote: Using actiontext 6.1.4
remote: Using rails 6.1.4
remote: Using slim-rails 3.3.0
remote: Fetching webpacker 6.0.0.beta.7
remote: Installing webpacker 6.0.0.beta.7
remote: Bundle complete! 33 Gemfile dependencies, 57 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 (3.02s)
remote: Cleaning up the bundler cache.
remote: Removing bundler (2.2.21)
remote: Removing webpacker (5.4.0)
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: yarn install v1.22.11
remote: [1/5] Validating package.json...
remote: [2/5] Resolving packages...
remote: [3/5] Fetching packages...
remote: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
remote: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [4/5] Linking dependencies...
remote: [5/5] Building fresh packages...
remote: Done in 29.45s.
remote: Compiling...
remote: Compiled all packs in /tmp/build_fdd676da/public/packs
remote: assets by path js/*.js 359 KiB
remote: asset js/639-75bf46afd6b736be1e36.js 356 KiB [emitted] [immutable] [minimized] [big] (id hint: vendors) 4 related assets
remote: asset js/runtime-3bb83285bc8735b5db7e.js 1.5 KiB [emitted] [immutable] [minimized] (name: runtime) 3 related assets
remote: asset js/application-1f05b16ee23e56d8882b.js 1.27 KiB [emitted] [immutable] [minimized] (name: application) 3 related assets
remote: asset css/application-03a5d7e3.css 160 KiB [emitted] [immutable] [minimized] (name: application) 3 related assets
remote: asset manifest.json 2.49 KiB [emitted] 2 related assets
remote: Entrypoint application [big] 519 KiB (2.34 MiB) = js/runtime-3bb83285bc8735b5db7e.js 1.5 KiB js/639-75bf46afd6b736be1e36.js 356 KiB css/application-03a5d7e3.css 160 KiB js/application-1f05b16ee23e56d8882b.js 1.27 KiB 4 auxiliary assets
remote: orphan modules 22.7 KiB [orphan] 24 modules
remote: runtime modules 3.37 KiB 6 modules
remote: modules by path ./node_modules/core-js/ 236 KiB 195 modules
remote: modules by path ./node_modules/@popperjs/core/lib/ 70.6 KiB 37 modules
remote: modules by path ./node_modules/bootstrap/js/src/ 140 KiB 22 modules
remote: modules by path ./app/packs/ 4.14 KiB (javascript) 163 KiB (css/mini-extract) 5 modules
remote: modules by path ./node_modules/@rails/ 60.4 KiB
remote: ./node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js 27.7 KiB [built] [code generated]
remote: ./node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js 32.6 KiB [built] [code generated]
remote: modules by path ./node_modules/@fortawesome/ 560 KiB
remote: ./node_modules/@fortawesome/fontawesome-svg-core/index.es.js 75 KiB [built] [code generated]
remote: ./node_modules/@fortawesome/free-brands-svg-icons/index.es.js 485 KiB [built] [code generated]
remote: ./node_modules/turbolinks/dist/turbolinks.js 37.6 KiB [built] [code generated]
remote: ./node_modules/jquery/dist/jquery.js 282 KiB [built] [code generated]
remote:
remote: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
remote: This can impact web performance.
remote: Assets:
remote: js/639-75bf46afd6b736be1e36.js (356 KiB)
remote: js/639-75bf46afd6b736be1e36.js.map.gz (595 KiB)
remote: js/639-75bf46afd6b736be1e36.js.map.br (512 KiB)
remote:
remote: WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
remote: Entrypoints:
remote: application (519 KiB)
remote: js/runtime-3bb83285bc8735b5db7e.js
remote: js/639-75bf46afd6b736be1e36.js
remote: css/application-03a5d7e3.css
remote: js/application-1f05b16ee23e56d8882b.js
remote:
remote: WARNING in webpack performance recommendations:
remote: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
remote: For more info visit https://webpack.js.org/guides/code-splitting/
remote:
remote: 1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
remote: webpack 5.48.0 compiled with 4 warnings in 32316 ms
remote:
remote: yarn install v1.22.11
remote: [1/5] Validating package.json...
remote: [2/5] Resolving packages...
remote: success Already up-to-date.
remote: Done in 0.89s.
remote: Asset precompilation completed (68.19s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: -----> Detecting rails configuration
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> release, web
remote: Default types for buildpack -> console, rake
remote:
remote: -----> Compressing...
remote: Done: 142.1M
remote: -----> Launching...
remote: ! Release command declared: this new release will not be available until the command succeeds.
remote: Released v189
remote: https://ruby3-rails6-bootstrap-heroku.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
remote: Running release command...
remote:
remote: Waiting for release.... done.
I'm using the released npm package of beta 7
the
rake assets:precompile
on heroku runs twice. Is it because of tailwind or because of bin file? Or this is normal?Here is the project https://github.com/personal-social-media/personal-social-media
and heroku output