Skip to content

Commit

Permalink
try to prevent asset compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmanh committed May 17, 2023
1 parent 2b74a17 commit 152e6a0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ end
gem 'rack-cors', require: 'rack/cors'
gem 'rails_api_auth'
gem 'nokogiri', '>= 1.10.4'

gem 'sprockets', '~> 3.7.2'
12 changes: 3 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ GEM
net-smtp
method_source (1.0.0)
mini_mime (1.1.2)
mini_portile2 (2.8.2)
minitest (5.18.0)
multi_xml (0.6.0)
net-imap (0.3.4)
Expand All @@ -95,9 +94,6 @@ GEM
net-smtp (0.3.3)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.0)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.15.0-x86_64-darwin)
racc (~> 1.4)
pg (0.21.0)
Expand Down Expand Up @@ -155,15 +151,13 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (4.1.1)
sprockets (4.2.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.6.3)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.3-x86_64-darwin)
thor (1.2.2)
thread_safe (0.3.6)
Expand All @@ -186,7 +180,6 @@ GEM
websocket-extensions (0.1.5)

PLATFORMS
ruby
x86_64-darwin-20

DEPENDENCIES
Expand All @@ -203,6 +196,7 @@ DEPENDENCIES
sassc-rails
sdoc (~> 0.4.0)
spring
sprockets (~> 3.7.2)
sqlite3 (= 1.6.3)
turbolinks
uglifier (>= 1.3.0)
Expand Down
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class Application < Rails::Application
config.active_record.raise_in_transactional_callbacks = true
config.assets.initialize_on_precompile = false

config.assets.precompile = []
config.assets.enabled = false

config.middleware.insert_before 0, "Rack::Cors" do
allow do
origins '*'
Expand Down
7 changes: 5 additions & 2 deletions config/initializers/new_framework_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
Rails.application.config.active_record.belongs_to_required_by_default = false

# Do not halt callback chains when a callback returns false. Previous versions had true.
ActiveSupport.halt_callback_chains_on_return_false = true
# ActiveSupport.halt_callback_chains_on_return_false = true

# Rails.application.config.assets.precompile = false
Rails.application.config.assets.precompile = []
Rails.application.config.assets.enabled = false

Rails.application.config.assets.precompile = false

0 comments on commit 152e6a0

Please sign in to comment.