diff options
author | George Claghorn <george@basecamp.com> | 2018-01-16 20:32:02 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-01-16 20:32:02 -0500 |
commit | 6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87 (patch) | |
tree | e7d5383d4cf8d6cc17c508732f0c56afcbdcaca2 /guides/source | |
parent | 4c0cb1c2c9269c74588da9f114f52ea3707ae8fb (diff) | |
download | rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.gz rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.bz2 rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.zip |
Provide a sensible default host
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_storage_overview.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index c5bd09ead6..d9f5aa8385 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -49,12 +49,10 @@ below declares three services named `local`, `test`, and `amazon`: local: service: Disk root: <%= Rails.root.join("storage") %> - host: http://localhost:3000 test: service: Disk root: <%= Rails.root.join("tmp/storage") %> - host: http://localhost:3000 amazon: service: S3 @@ -93,7 +91,15 @@ Declare a Disk service in `config/storage.yml`: local: service: Disk root: <%= Rails.root.join("storage") %> - host: http://localhost:3000 +``` + +Optionally specify a host for generating URLs (the default is `http://localhost:3000`): + +```yaml +local: + service: Disk + root: <%= Rails.root.join("storage") %> + host: http://myapp.test ``` ### Amazon S3 Service |