All threads / Active Storage and Subdomains

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Active Storage and Subdomains

Ted Martin asked in Rails

I have a simple app for photos and wanted to make it a subdomain of a domain I own and use. It would be https://photos.com This seems to break active storage however. Has anyone else ran into a similar issue in the past with active storage and subdomains?

Thanks.

I'm not real sure on this one, let us know if you find more details. I didn't find much on a quick google search, but I thought that Rails would automatically use the current request's subdomain/domain so you wouldn't have to do anything.

Well I feel dumb. I didn't have Image Magick - sudo apt install imagemagick - on the server; once that was installed, all was good. Perhaps adding a mention of that in your tutorial on deploying to Ubuntu 18.04. Thank you for all your work on this site; I've learned a ton and $19 a month is a steal for the value you offer. Thanks!

Ah, that'll get you! Good idea about adding that. It's pretty common, either that or one of the alternatives like libvips that's supposed to be faster.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.