There is one monolithic application, inside there are two applications - app1 and app2 .
They have common models.
The file is created in app1 , and is accordingly saved in app1:rails_root/public/...
and when calling ticket.document.url second application does not see it, since it refers to app2:rails_root/public/...

Probably there are two ways:
1) How to save directly to the second application?
1) How to tell the url where to look from the second application?

  • I have the option of dividing these two applications into two containers with connection to the same database and using the same storage. Storage can be both local and cloud. Although on the other hand, if you have the same database and the same files, why not split the Rails application into modules? - Colibri
  • Thank you, in the end I made a shared folder ( app1:rails_root/public/... on app1:rails_root/public/... ) - evans

0