We are running a Ruby on Rails 5 application in a Docker Container. The container is hosted on Azure Container Apps.
We need to persist the public folder and would like to use Azure File Share for this. The share is working and accessible (test via script)
Problem is now, that with azure container apps we can't define a volume like in docker-compose in order to change the public folder directly from inside the container to outside:
volumes:
- "./path/to/public/folder:/app/public"
Usually I would pass the volume to docker run, but this is not possible with azure container apps.
I am no Ruby developer.
I tried to change the public folder for assets with the following How to override public folder path in Rails 4?
in config/Application.rb
config.assets.paths['public'] = File.join('/cms-share', 'public')
Sadly this is leading to an exception on startup:
! Unable to load application: TypeError: no implicit conversion of String into Integer
/app/config/application.rb:32:in `[]=': no implicit conversion of String into Integer (TypeError)
Thanks in advance