1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

(bug) Active serving static files from the /public folder by default

This commit is contained in:
Du Peng 2023-01-02 12:50:51 +01:00
parent 36fba94a5f
commit ce183691cb
3 changed files with 5 additions and 5 deletions

View File

@ -17,6 +17,7 @@
- OpenAPI users endpoint offer ability to filter by created_after
- OpenAPI users endpoint return first name, last name, gender, organization and address
- Default accounting codes and labels if not set
- Active serving static files from the `/public` folder by default from rails
- Fix a bug: unable to run test in negative timezones (#425)
- Fix a bug: providing an array of attributes to filter OpenApi data, results in error
- Fix a bug: unable to manage stocks on new products

View File

@ -25,10 +25,8 @@ Rails.application.configure do
protocol: Rails.application.secrets.default_protocol
}
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Active serving static files from the `/public` folder by default
config.public_file_server.enabled = true
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache

View File

@ -66,7 +66,8 @@ Rails.application.configure do
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
# config.serve_static_assets = true
# Active serving static files from the `/public` folder by default
config.public_file_server.enabled = true
config.action_mailer.default_url_options = {
host: Rails.application.secrets.default_host,