The default Rails app installed by rails new has config.assets.compile = false in production.
rails new
config.assets.compile = false
And the ordinary way to do things is to run
It won't be the same as precompiling, even after that first hit: because the files aren't written to the filesystem they can't be served directly by the web server. Some ruby code will always be involved, even if it just reads a cache entry.