config.hotwire_livereload.reload_method = :turbo_stream
to my development.rb as well. Im seeing this route error in my logs:
ActionController::RoutingError (No route matches [GET] "/rails/live/reload
And every time I update a CSS or JS, the entire page reloads. Here is my application.haml:
!!!
%html
%head{data: {controller: 'page'}}
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%title{data: {page_target: 'title'}} Wecora
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
%meta{content: "false", name: "turbo-prefetch"}/
= csrf_meta_tags
= csp_meta_tag
= hotwire_livereload_tags if Rails.env.development?
= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : ""
= javascript_include_tag "application", "data-turbo-track": Rails.env.development? ? "" : "reload", type: "module"
= javascript_include_tag 'https://kit.fontawesome.com/f1cda1e9fa.js', crossorigin: 'anonymous', "data-mutate-approach": "sync"
= yield :head
%body{id: controller.controller_name, class: application_body_classes, data: {controller: 'home utilities', view: get_board_view}}
- unless hide_header?
= render 'layouts/nav_header'
= yield
= render 'layouts/flash'
= turbo_frame_tag :remote_modal
source "https://rubygems.org"
ruby "3.3.4"
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.3", ">= 7.1.3.4"
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
# gem "sprockets-rails"
gem "propshaft"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.1"
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"
# Bundle and transpile JavaScript [https://github.com/rails/jsbundling-rails]
gem "jsbundling-rails"
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"
# Bundle and process CSS [https://github.com/rails/cssbundling-rails]
gem "cssbundling-rails"
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"
# Use Redis adapter to run Action Cable in production
gem "redis", ">= 4.0.1"
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ windows jruby ]
# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"
group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri windows ]
gem "httplog"
gem "rubocop"
end
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
gem "letter_opener"
gem "annotate"
gem "hotwire-livereload"
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
end
gem "devise", "~> 4.9"
gem "haml-rails", "~> 2.1"
gem "airbrake", "~> 13.0"
gem "money-rails", "~> 1.15"
gem "ledermann-rails-settings", "~> 2.6"
gem "sidekiq", "~> 7.2"
gem "stripe", "~> 11.6"
gem "stripe_event", "~> 2.9"
gem "nokogiri", "~> 1.16"
gem "simple_form", "~> 5.3"
gem "aws-sdk-s3", "~> 1.152"
gem "aws-sdk-rekognition", "~> 1.97"
gem "airbrake-ruby", "~> 6.2"
gem "html2haml", "~> 2.3"
gem "intuit-oauth"
gem "oauth2", "~> 2.0", ">= 2.0.9"
gem "omniauth"
gem "omniauth-rails_csrf_protection"
gem "email_validator", "~> 2.2"
gem "public_activity", "~> 3.0"
gem "postmark-rails", "~> 0.22.1"
gem "imgkit", "~> 1.6"
gem "mini_magick", "~> 4.12"
gem "cancancan"
gem "kt-paperclip", "~> 7.2"
gem "paranoia", "~> 2.6"
gem "acts-as-taggable-on", "~> 10.0"
gem "active_storage_validations", "~> 1.1"
gem "image_processing", "~> 1.12"
gem "activeadmin", "~> 3.2"
gem "browser", "~> 6.0"
gem "doorkeeper", "~> 5.7"
gem "pinterest-api", github: "noctivityinc/pinterest-api"
gem "pipedrive-api-client"
gem "quickbooks-ruby", "~> 2.0", ">= 2.0.3"
gem "rack-cors", require: "rack/cors"
gem "twilio-ruby"
gem "recaptcha"
gem "intercom", "~> 4.2"
gem "pusher", "~> 2.0"
gem "local_time", "~> 3.0"
gem "link_thumbnailer", "~> 3.4"
gem "caxlsx", "~> 4.1"
gem "caxlsx_rails", "~> 0.6.3"
gem "riif", github: "linjunpop/riif", branch: "master"
gem "pagy", "~> 8.4"
gem "redcarpet", "~> 3.6"
gem "down", "~> 5.0"
gem "mimemagic"
gem "ruby-openai"
gem "rest-client", "~> 2.1"
gem "apipie-rails", "~> 1.4"
gem "rack-wwwhisper", "~> 1.1"
gem "pg_search", "~> 2.3"
gem "dotenv", groups: [:development, :test]
gem "numbers_and_words", "~> 0.11.12"
gem "bootstrap-email", "~> 1.5"
gem "country_select", "~> 9.0"