Precompile assets with same digest on different hosts

Is it possible to compile assets on different hosts (traffic routing) with the same digest?

For example, if my Rails 3.2 app is deployed to 2 different hosts host1 and host2, I want to have application.css on both host1 and host2 with the same digest application-34a9sadas1238023a8.css

Answers


The digest is going to be the same for each host because it is based on the content of the file.

If you are deploying to multiple hosts, the assets will get precompiled on both during deployment.

If you want to avoid this because of the time it takes, there is a way to compile locally and commit, and still have development mode work as expected. It is here.


Need Your Help

Custom URL Scheme from settings.bundle

iphone objective-c iphone-sdk-3.0 settings.bundle

Is it possible to set a custom URL scheme to launch my app from a link but make this a user defined setting?

Can PySpark work with numpy arrays?

python numpy apache-spark pyspark

I tried to execute the following commands in a pyspark session: