Using assets from a Rails app

Hi. I have a Rails app that uses the good ole asset pipeline for css, images, fonts, etc. It uses webpack for js. I want to start routing certain requests to a Phoenix app (via Nginx and path based routing). For example…

/foo/* goes to the Rails app.
/bar/* goes to the Phoenix app.

The question is how to get Phoenix to use the assets from the Rails app? It feels like the asset pipeline and webpack should publish a manifest that translate /myapp.css to /myapp-sha.css. But how to make Phoenix aware of that and wire it all up?

Thanks for the help.

1 Like