mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(bug) Active serving static files from the /public folder by default
This commit is contained in:
parent
36fba94a5f
commit
ce183691cb
@ -17,6 +17,7 @@
|
|||||||
- OpenAPI users endpoint offer ability to filter by created_after
|
- OpenAPI users endpoint offer ability to filter by created_after
|
||||||
- OpenAPI users endpoint return first name, last name, gender, organization and address
|
- OpenAPI users endpoint return first name, last name, gender, organization and address
|
||||||
- Default accounting codes and labels if not set
|
- 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: 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: providing an array of attributes to filter OpenApi data, results in error
|
||||||
- Fix a bug: unable to manage stocks on new products
|
- Fix a bug: unable to manage stocks on new products
|
||||||
|
@ -25,10 +25,8 @@ Rails.application.configure do
|
|||||||
protocol: Rails.application.secrets.default_protocol
|
protocol: Rails.application.secrets.default_protocol
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable serving static files from the `/public` folder by default since
|
# Active serving static files from the `/public` folder by default
|
||||||
# Apache or NGINX already handles this.
|
config.public_file_server.enabled = true
|
||||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
|
||||||
|
|
||||||
|
|
||||||
# Specifies the header that your server uses for sending files.
|
# Specifies the header that your server uses for sending files.
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||||
|
@ -66,7 +66,8 @@ Rails.application.configure do
|
|||||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
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 = {
|
config.action_mailer.default_url_options = {
|
||||||
host: Rails.application.secrets.default_host,
|
host: Rails.application.secrets.default_host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user