[
https://issues.jboss.org/browse/JBIDE-22362?page=com.atlassian.jira.plugi...
]
Marián Labuda edited comment on JBIDE-22362 at 6/8/16 10:42 AM:
----------------------------------------------------------------
The upstream issue has been fixed, nodejs template uses fixed base image. But static
content is not visible by default/published and propagated. It requires DEV_MODE runtime
environment set to true (this was not working earlier, but it is the fixed issue and
working) and once the DEV_MODE is set to true, static content is updated. There are 2
outstanding question:
a) How should it really work? I was trying to get some answer on #aos channel and bparees
answered on question whether DEV_MODE is required even for static content: "depends
how nodejs is serving that static content, i'm really not sure, but i'd be willing
to be it caches it, so you'd need DEV_MODE to get the changes picked up." We need
someone who is deep enough in nodejs stuff to clarify this one.
b) Do we wanna have DEV_MODE environment variable set to true by default for nodejs
examples to let users easily modify their application? If Answer from question A is that
DEV_MODE is required even for static content. I think it would be quite "must
be" to have an application which is changeable.
was (Author: mlabuda):
The upstream issue has been fixed, nodejs template uses fixed base image. But static
content is not visible by default/published and propagated. It requires DEV_MODE runtime
environment set to true (this was not working earlier, but it is the fixed issue and
working) and once the DEV_MODE is set to true, static content is updated. There are 2
outstanding question:
a) How should it really work? I was trying to get some answer on #aos channel and bparees
answered on question whether DEV_MODE is required even for static content: "depends
how nodejs is serving that static content, i'm really not sure, but i'd be willing
to be it caches it, so you'd need DEV_MODE to get the changes picked up."
b) Do we wanna have DEV_MODE environment variable set to true by default for nodejs
examples to let users easily modify their application? If Answer from question A is that
DEV_MODE is required even for static content. I think it would be quite "must
be" to have an application which is changeable.
Server Adapter: Static changes done to nodejs application are not
visible
-------------------------------------------------------------------------
Key: JBIDE-22362
URL:
https://issues.jboss.org/browse/JBIDE-22362
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift, upstream
Affects Versions: 4.4.0.Alpha2
Reporter: Marián Labuda
Assignee: Marián Labuda
Priority: Critical
Labels: openshift_v3, server_adapter
Fix For: 4.4.1.Alpha1
I am having an OpenShift application based either on nodejs-example or
nodejs-mongodb-example template. Once application is up and running I create a new server
adapter and perform changes in index.html. These changes are static and should be (?)
immediately visible on OpenShift server, but they are not. I have checked whether changes
were published, but rsync in console shows expected output also changes done manually on
the server side to index.html are not visible in browser (even when cache overwritten is
triggered - so there is no caching problem in browser). This seems to be upstream issues,
but requires investigating.
So far I have tried it on CDK OpenShift. It would be nice to test it on other OpenShift
instances, also on templates using different base docker image.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)