Skip to content

Commit

Permalink
Disable ActiveStorage, since we don't use it at the moment and it pro…
Browse files Browse the repository at this point in the history
…bably won't work with local storage on Heroku
  • Loading branch information
smellsblue committed Jun 25, 2024
1 parent a5efeed commit c4008ed
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "active_storage/engine"
# require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_mailbox/engine"
Expand Down
3 changes: 2 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
end

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# StockAid NOTE: ActiveStorage is currently disabled
# config.active_storage.service = :local

# Don't send mail. Preview it in a new window.
config.action_mailer.delivery_method =
Expand Down
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# StockAid NOTE: ActiveStorage is currently disabled
# config.active_storage.service = :local

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
Expand Down
3 changes: 2 additions & 1 deletion config/environments/review.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# StockAid NOTE: ActiveStorage is currently disabled
# config.active_storage.service = :local

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
Expand Down
3 changes: 2 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# StockAid NOTE: ActiveStorage is currently disabled
# config.active_storage.service = :local

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
Expand Down
3 changes: 2 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
config.action_controller.allow_forgery_protection = false

# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test
# StockAid NOTE: ActiveStorage is currently disabled
# config.active_storage.service = :test

config.action_mailer.perform_caching = false

Expand Down

0 comments on commit c4008ed

Please sign in to comment.