aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_storage_overview.md
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-01-16 20:32:02 -0500
committerGeorge Claghorn <george@basecamp.com>2018-01-16 20:32:02 -0500
commit6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87 (patch)
treee7d5383d4cf8d6cc17c508732f0c56afcbdcaca2 /guides/source/active_storage_overview.md
parent4c0cb1c2c9269c74588da9f114f52ea3707ae8fb (diff)
downloadrails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.gz
rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.tar.bz2
rails-6fb3ac1536d60bc12cf531e83e4060fe1fdf3d87.zip
Provide a sensible default host
Diffstat (limited to 'guides/source/active_storage_overview.md')
-rw-r--r--guides/source/active_storage_overview.md12
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