Red Hat Bugzilla – Bug 1470816
rails apps should have RAILS_SERVE_STATIC_FILES set by default
Last modified: 2018-02-28 06:07:16 EST
Description of problem:
When a rails app is created, the default mode is `production`. In production mode, the app by default does not serve static files like the compiled assets.
To make rails app work OOB, we need to set as detault the RAILS_SERVE_STATIC_FILES env variable to the worker pod.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I guess any app will do the job but you could try https://github.com/openshift-qe/ownthat
1. oc create -f openshift/secret.yml # first edit the file
2. oc process -f openshift/template.yml | oc create -f -
3. open app in browser
styles and other assets missing, page looking really ugly
page looks nice and assets are served to browser