I am deploying a Rails application.
Since I started using CSS for my Rails applications, auto-deploying doesn’t work well anymore.
I will share images and logs of when auto-deploy doesn’t work.
Sep 17 09:47:35 AM Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Sep 17 09:47:36 AM Using rake 13.0.6
Sep 17 09:47:36 AM Using concurrent-ruby 1.1.10
Sep 17 09:47:36 AM Using i18n 1.10.0
Sep 17 09:47:36 AM Using minitest 5.15.0
Sep 17 09:47:36 AM Using tzinfo 2.0.4
Sep 17 09:47:36 AM Using zeitwerk 2.5.4
Sep 17 09:47:36 AM Using activesupport 6.1.6
Sep 17 09:47:36 AM Using builder 3.2.4
Sep 17 09:47:36 AM Using erubi 1.10.0
Sep 17 09:47:36 AM Using racc 1.6.0
Sep 17 09:47:36 AM Using nokogiri 1.13.6 (x86_64-linux)
Sep 17 09:47:36 AM Using rails-dom-testing 2.0.3
Sep 17 09:47:36 AM Using crass 1.0.6
Sep 17 09:47:36 AM Using loofah 2.18.0
Sep 17 09:47:36 AM Using rails-html-sanitizer 1.4.2
Sep 17 09:47:36 AM Using actionview 6.1.6
Sep 17 09:47:36 AM Using rack 2.2.3.1
Sep 17 09:47:36 AM Using rack-test 1.1.0
Sep 17 09:47:36 AM Using actionpack 6.1.6
Sep 17 09:47:36 AM Using nio4r 2.5.8
Sep 17 09:47:36 AM Using websocket-extensions 0.1.5
Sep 17 09:47:36 AM Using websocket-driver 0.7.5
Sep 17 09:47:36 AM Using actioncable 6.1.6
Sep 17 09:47:36 AM Using globalid 1.0.0
Sep 17 09:47:36 AM Using activejob 6.1.6
Sep 17 09:47:36 AM Using activemodel 6.1.6
Sep 17 09:47:36 AM Using activerecord 6.1.6
Sep 17 09:47:36 AM Using marcel 1.0.2
Sep 17 09:47:36 AM Using mini_mime 1.1.2
Sep 17 09:47:36 AM Using activestorage 6.1.6
Sep 17 09:47:36 AM Using mail 2.7.1
Sep 17 09:47:36 AM Using actionmailbox 6.1.6
Sep 17 09:47:36 AM Using actionmailer 6.1.6
Sep 17 09:47:36 AM Using actiontext 6.1.6
Sep 17 09:47:36 AM Using bcrypt 3.1.18
Sep 17 09:47:36 AM Using msgpack 1.5.2
Sep 17 09:47:36 AM Using bootsnap 1.12.0
Sep 17 09:47:36 AM Using bundler 2.2.22
Sep 17 09:47:36 AM Using orm_adapter 0.5.0
Sep 17 09:47:36 AM Using method_source 1.0.0
Sep 17 09:47:36 AM Using thor 1.2.1
Sep 17 09:47:36 AM Using railties 6.1.6
Sep 17 09:47:36 AM Using responders 3.0.1
Sep 17 09:47:36 AM Using warden 1.2.9
Sep 17 09:47:36 AM Using devise 4.8.1
Sep 17 09:47:36 AM Using devise-i18n 1.10.2
Sep 17 09:47:36 AM Using digest 3.1.0
Sep 17 09:47:36 AM Using ffi 1.15.5
Sep 17 09:47:36 AM Using jbuilder 2.11.5
Sep 17 09:47:36 AM Using meta-tags 2.17.0
Sep 17 09:47:36 AM Using timeout 0.3.0
Sep 17 09:47:36 AM Using net-protocol 0.1.3
Sep 17 09:47:36 AM Using strscan 3.0.4
Sep 17 09:47:36 AM Using net-imap 0.2.3
Sep 17 09:47:36 AM Using net-pop 0.1.1
Sep 17 09:47:36 AM Using net-smtp 0.3.1
Sep 17 09:47:36 AM Using pg 1.3.5
Sep 17 09:47:36 AM Using puma 5.6.4
Sep 17 09:47:36 AM Using rack-proxy 0.7.2
Sep 17 09:47:36 AM Using sprockets 4.0.3
Sep 17 09:47:36 AM Using sprockets-rails 3.4.2
Sep 17 09:47:36 AM Using rails 6.1.6
Sep 17 09:47:36 AM Using sassc 2.4.0
Sep 17 09:47:36 AM Using tilt 2.0.10
Sep 17 09:47:36 AM Using sassc-rails 2.1.2
Sep 17 09:47:36 AM Using sass-rails 6.0.0
Sep 17 09:47:36 AM Using semantic_range 3.0.0
Sep 17 09:47:36 AM Using temple 0.8.2
Sep 17 09:47:36 AM Using slim 4.1.0
Sep 17 09:47:36 AM Using turbolinks-source 5.2.0
Sep 17 09:47:36 AM Using turbolinks 5.2.1
Sep 17 09:47:36 AM Using webpacker 5.4.3
Sep 17 09:47:36 AM Bundle complete! 29 Gemfile dependencies, 72 gems now installed.
Sep 17 09:47:36 AM Gems in the groups 'development' and 'test' were not installed.
Sep 17 09:47:36 AM Bundled gems are installed into `/opt/render/project/.gems`
Sep 17 09:47:41 AM yarn install v1.22.19
Sep 17 09:47:42 AM [1/4] Resolving packages...
Sep 17 09:47:42 AM success Already up-to-date.
Sep 17 09:47:42 AM Done in 1.14s.
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.292177 #112] INFO -- : Writing /opt/render/project/src/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.292697 #112] INFO -- : Writing /opt/render/project/src/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.292969 #112] INFO -- : Writing /opt/render/project/src/public/assets/application-7fe8838d3b92a38a9219a45e4d5c6ba687bbf58754ccaac5a9a749b7c096a6b6.css
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.293275 #112] INFO -- : Writing /opt/render/project/src/public/assets/application-7fe8838d3b92a38a9219a45e4d5c6ba687bbf58754ccaac5a9a749b7c096a6b6.css.gz
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.293647 #112] INFO -- : Writing /opt/render/project/src/public/assets/destyle-568c34015f12fdf79a296df9ecfa426e4aaf4f55698250f3ddf5b4e3e3bb7e82.css
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.294075 #112] INFO -- : Writing /opt/render/project/src/public/assets/destyle-568c34015f12fdf79a296df9ecfa426e4aaf4f55698250f3ddf5b4e3e3bb7e82.css.gz
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.298631 #112] INFO -- : Writing /opt/render/project/src/public/assets/layout-601a97bd79a22b3bf11eef16ef9124d07c9ba118bde215940b42b458493ca8a3.css
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.299934 #112] INFO -- : Writing /opt/render/project/src/public/assets/layout-601a97bd79a22b3bf11eef16ef9124d07c9ba118bde215940b42b458493ca8a3.css.gz
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.300646 #112] INFO -- : Writing /opt/render/project/src/public/assets/top-c0de4930d7008bb10fbca209478826ef10b5089facd67b72e646885690d1840a.css
Sep 17 09:47:43 AM I, [2022-09-17T00:47:43.300988 #112] INFO -- : Writing /opt/render/project/src/public/assets/top-c0de4930d7008bb10fbca209478826ef10b5089facd67b72e646885690d1840a.css.gz
Sep 17 09:47:43 AM Compiling...
Sep 17 09:47:48 AM Compiled all packs in /opt/render/project/src/public/packs
Sep 17 09:47:48 AM Hash: e4583ae27aa337a7182c
Sep 17 09:47:48 AM Version: webpack 4.46.0
Sep 17 09:47:48 AM Time: 2144ms
Sep 17 09:47:48 AM Built at: 09/17/2022 12:47:48 AM
Sep 17 09:47:48 AM Asset Size Chunks Chunk Names
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js 69.3 KiB 0 [emitted] [immutable] application
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js.br 15.3 KiB [emitted]
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js.gz 17.8 KiB [emitted]
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js.map 205 KiB 0 [emitted] [dev] application
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js.map.br 43.8 KiB [emitted]
Sep 17 09:47:48 AM js/application-d8e3cca76168bd49a8ed.js.map.gz 50.8 KiB [emitted]
Sep 17 09:47:48 AM manifest.json 364 bytes [emitted]
Sep 17 09:47:48 AM manifest.json.br 127 bytes [emitted]
Sep 17 09:47:48 AM manifest.json.gz 142 bytes [emitted]
Sep 17 09:47:48 AM Entrypoint application = js/application-d8e3cca76168bd49a8ed.js js/application-d8e3cca76168bd49a8ed.js.map
Sep 17 09:47:48 AM [0] (webpack)/buildin/module.js 552 bytes {0} [built]
Sep 17 09:47:48 AM [4] ./app/javascript/packs/application.js 480 bytes {0} [built]
Sep 17 09:47:48 AM [5] ./app/javascript/channels/index.js 205 bytes {0} [built]
Sep 17 09:47:48 AM [6] ./app/javascript/channels sync _channel\.js$ 160 bytes {0} [built]
Sep 17 09:47:48 AM + 3 hidden modules
Sep 17 09:47:48 AM
Sep 17 09:47:55 AM ==> Uploading build...
Sep 17 09:48:10 AM ==> Build uploaded in 9s
Sep 17 09:48:10 AM ==> Build successful 🎉
Sep 17 09:48:10 AM ==> Deploying...
The logs do not show any error codes or error messages, so I cannot determine the cause.
The clear build cache & deploy feature will deploy, but I can’t get the auto-deploy to work when I push to my GitHub repository.
Here is my deploy shell
#!/usr/bin/env bash
# exit on error
set -o errexit
bundle install
bundle exec rake assets:precompile
bundle exec rake assets:clean
bundle exec rake db:migrate
I believe the cache may be interfering, as clearing the build cache allows me to deploy. However, I do not know how to fix it.
Does anyone know a good way to solve this problem?