Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1654 from ajaxorg/console_double_notification

The console client plugin should not put info about the URL and port
  • Loading branch information...
commit 4bde3206ac0dc1e5736cb18a42851e203a6cc68f 2 parents 1068281 + 73737d8
Zef Hemel authored

Showing 1 changed file with 8 additions and 17 deletions. Show diff stats Hide diff stats

  1. 25  plugins-client/ext.console/console.js
25  plugins-client/ext.console/console.js
@@ -398,25 +398,16 @@ module.exports = ext.register("ext/console/console", {
398 398
         }
399 399
     },
400 400
 
401  
-    createNodeProcessLog : function(message_pid) {
402  
-                var command_id = this.createOutputBlock("Running Node Process", true);
  401
+    createNodeProcessLog: function(message_pid) {
  402
+        var command_id = this.createOutputBlock("Running Node Process", true);
403 403
         this.tracerToPidMap[command_id] = message_pid;
404 404
         this.pidToTracerMap[message_pid] = command_id;
405  
-
406  
-                var containerEl = this.getLogStreamOutObject(command_id).$ext;
407  
-                containerEl.setAttribute("rel", command_id);
408  
-                apf.setStyleClass(containerEl, "has_pid");
409  
-
410  
-                if (window.cloud9config.hosted) {
411  
-                    var url = location.protocol + "//" +
412  
-                        ide.workspaceId.replace(/(\/)*user(\/)*/, '').split("/").reverse().join(".") +
413  
-                        "." + location.host;
414  
-                    logger.logNodeStream("Tip: you can access long running processes, like a server, at '" + url +
415  
-                        "'.\nImportant: in your scripts, use 'process.env.PORT' as port and '0.0.0.0' as host.\n ",
416  
-                null, this.getLogStreamOutObject(message_pid, true), ide);
417  
-                }
418  
-
419  
-                this.command_id_tracer++;
  405
+    
  406
+        var containerEl = this.getLogStreamOutObject(command_id).$ext;
  407
+        containerEl.setAttribute("rel", command_id);
  408
+        apf.setStyleClass(containerEl, "has_pid");
  409
+    
  410
+        this.command_id_tracer++;
420 411
         return command_id;
421 412
     },
422 413
 

0 notes on commit 4bde320

Please sign in to comment.
Something went wrong with that request. Please try again.