The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Askar (112) [Avatar] Offline
It's says:

In the production environment, the Rails server is configured to not serve static assets (such as JavaScript and images) itself. Instead, it relies on the host web server to serve the assets out of the public directory.

Can you please show some example how it would happen?
sevenseacat (42) [Avatar] Offline
We don't cover that at any point during the book, because we only deal with either development (in which we use WEBrick) and production (in which we use Heroku, and not a manually configured server).

If you are using Apache or nginx in production, these should be configured to serve static assets, by setting your document root to your `public/` directory.

Askar (112) [Avatar] Offline
Thanks a lot! smilie