Support Forum
#supportforum Any doubts or questions on how to use Decidim? Check them with the Community!
Change Public folder to new repository
Hello,
We have set up a Decidim app with two nodes in production. When we go to save an attachment or an upload the system goes to save it in the "public" folder of the node currently in use, but not in the other node and it happens that if the active node is not the one in which the attachment is present , the system returns error 404.
We would like to set up a single repository for both nodes. How do we change the pointers from the "public" folder to our new shared repository?
Report inappropriate content
Is this content inappropriate?
1 comment
I'd recommend you to use an external service for file storage. Like Amazon S3 (although there other possibilities).
Here you'll find and example to configure it:
https://github.com/AjuntamentdeBarcelona/decidim-barcelona/blob/master/config/initializers/carrierwave.rb
Another possibility is to sync both folders using some script or use nfs. You should google that if interested.
Add your comment
Sign in with your account or sign up to add your comment.
Loading comments ...