[jbosstools-issues] [JBoss JIRA] (JBIDE-22362) Server Adapter: Static changes done to nodejs application are not visible

Ilya Buziuk (JIRA) issues at jboss.org
Mon Jun 13 12:23:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251724#comment-13251724 ] 

Ilya Buziuk commented on JBIDE-22362:
-------------------------------------

[~mlabuda], [~akazakov] my understanding is the following:
a)*DEV_MODE* is required for both static and dynamic content, otherwise hot deploy will not work.
b) I'm not sure that enabling *DEV_MODE* by default is a must, because it looks a bit strange from API perspective IMO (each time setting `DEV_MODE=false` will be required for vanilla launches). If we still want to do it, the fix is pretty straight forward - https://github.com/sclorg/s2i-nodejs-container/blob/master/0.10/s2i/bin/run#L29 . 
I would rather suggest to have a decent documentation / blog covering this use case. BTW, Ian wrote a great article on this topic - ["Hot Deploy for Nodejs Applications on OpenShift"|https://github.com/Ian-Stewart-Binks/jbosstools-website/pull/1] I think it will be great to have it published somewhere related to openshift v3 (http://developers.redhat.com/ ?) cc: [~gercan]

> 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: javascript, openshift, upstream
>    Affects Versions: 4.4.0.Alpha2
>            Reporter: Marián Labuda
>            Assignee: Ilya Buziuk
>            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)



More information about the jbosstools-issues mailing list