X
X
xxx44yyy2019-10-16 05:59:37
Ruby on Rails
xxx44yyy, 2019-10-16 05:59:37

How is working with assets on other servers arranged?

Rails has an asset_host parameter where you can specify a server with assets. It seems logical, but not clear, but how does the data get there, what to do with it there? If you run assets:precompile on production, then they will not be compiled on another server. Can someone briefly explain?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-10-16
@xxx44yyy

on another server they are not needed.
asset_host is a separate host (ideally a separate server, but often a separate domain on the same server) from which the static is distributed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question