Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

Active Storage and Subdomains

Rails • Asked by Ted Martin

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.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.