Bug 1470816 - rails apps should have RAILS_SERVE_STATIC_FILES set by default
Summary: rails apps should have RAILS_SERVE_STATIC_FILES set by default
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-ruby23-container
Version: rh-ruby23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pavel Valena
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 18:08 UTC by Aleksandar Kostadinov
Modified: 2019-06-14 14:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 14:18:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Aleksandar Kostadinov 2017-07-13 18:08:05 UTC
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):
registry.access.redhat.com/rhscl/ruby-23-rhel7@sha256:4b496b8b4d306badbea387f790004f867ca774526c17fb0fffdc88d58384c495

How reproducible:
always

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

Actual results:
styles and other assets missing, page looking really ugly

Expected results:
page looks nice and assets are served to browser

Comment 5 Joe Orton 2019-03-14 11:02:42 UTC
Red Hat does not currently plan to provide any further changes to this collection in a Red Hat Software Collections update release.

This software collection is nearing the retirement date (May 2019) after which customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/

Comment 6 Aleksandar Kostadinov 2019-03-14 12:00:27 UTC
Then make sure this is fixed in the newer SCL version.

Comment 7 Joe Orton 2019-06-14 14:18:27 UTC
In accordance with the Red Hat Software Collections Product Life Cycle, the support period for this collection has ended.

New bug fix, enhancement, and security errata updates, as well as technical support services will no longer be made available for this collection.

Customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/


Note You need to log in before you can comment on or make changes to this bug.