Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-2842

Che-docs devfile live-reload is not working #19311

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • Che 7.27
    • Eclipse Che
    • devex docs #199 Mar 25-Apr 15
    • 5
    • Undefined

      https://github.com/eclipse/che/issues/19311

       
       

       

      Steps to reproduce # Start a workspace from this devfile/repo in Che https://github.com/eclipse/che-docs

      1. Start the preview server
      2. open a file
      3. make a change
      4. no changes in the preview ... refreshing the preview page works

      Expected behavior

      changes should not need manual refresh of the preview view

      Maybe configuring a proxy providing the right route to the livereload url could work:

       

      {{gulp.task('server', function(){
      connect.server({
      root: ['www'],
      port: 9000,
      livereload: true,
      middleware: function(connect, o) {
      return [ (function()

      { var url = require('url'); var proxy = require('proxy-middleware'); var options = url.parse('http://beta.rhinobird.tv/api'); options.route = '/api'; return proxy(options); }

      )() ];
      }
      });}}

              Unassigned Unassigned
              ffloreth@redhat.com Fabrice Flore-Thébault
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: