Skip to content

Commit 2b62da5

Browse files
authored
Do not compile assets in production (#264)
2 parents a00ca85 + 8b0f247 commit 2b62da5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/environments/production.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
# Apache or NGINX already handles this.
2727
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2828

29+
# Do not fallback to assets pipeline if a precompiled asset is missed.
30+
config.assets.compile = false
31+
2932
# Specifies the header that your server uses for sending files.
3033
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
3134
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

0 commit comments

Comments
 (0)