Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

The console client plugin should not put info about the URL and port,…

… the server is perfectly capable of doing that himself
  • Loading branch information...
commit 73737d84f5632e4cf3171b3141cefc5054032d86 1 parent b494c51
Jan Jongboom authored June 04, 2012

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 73737d8

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