mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #23642 from tvon/chore/fix-path-omission
Fix 'config/production.rb' path in comment
This commit is contained in:
commit
d50d709424
3 changed files with 3 additions and 3 deletions
|
@ -405,7 +405,7 @@ Please refer to the [Changelog][railties] for detailed changes.
|
||||||
url: http://localhost:3001
|
url: http://localhost:3001
|
||||||
namespace: my_app_development
|
namespace: my_app_development
|
||||||
|
|
||||||
# config/production.rb
|
# config/environments/production.rb
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
||||||
end
|
end
|
||||||
|
|
|
@ -901,7 +901,7 @@ your CDN server, you need to tell browsers to use your CDN to grab assets
|
||||||
instead of your Rails server directly. You can do this by configuring Rails to
|
instead of your Rails server directly. You can do this by configuring Rails to
|
||||||
set your CDN as the asset host instead of using a relative path. To set your
|
set your CDN as the asset host instead of using a relative path. To set your
|
||||||
asset host in Rails, you need to set `config.action_controller.asset_host` in
|
asset host in Rails, you need to set `config.action_controller.asset_host` in
|
||||||
`config/production.rb`:
|
`config/environments/production.rb`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
config.action_controller.asset_host = 'mycdnsubdomain.fictional-cdn.com'
|
config.action_controller.asset_host = 'mycdnsubdomain.fictional-cdn.com'
|
||||||
|
|
|
@ -214,7 +214,7 @@ module Rails
|
||||||
# url: http://localhost:3001
|
# url: http://localhost:3001
|
||||||
# namespace: my_app_development
|
# namespace: my_app_development
|
||||||
#
|
#
|
||||||
# # config/production.rb
|
# # config/environments/production.rb
|
||||||
# Rails.application.configure do
|
# Rails.application.configure do
|
||||||
# config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
# config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
||||||
# end
|
# end
|
||||||
|
|
Loading…
Reference in a new issue