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.

Reply

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.

Reply

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!

Reply

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.

Reply
Join the discussion
Create an account Log in

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

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

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