Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Orion/How Tos/How To Run Real Shell"

< Orion‎ | How Tos
(Created page with "== Run Node server with real shell enabled == * in bundles/org.eclipse.orion.client.ui/web/defaults.prefs, add the following line in the ''/plugin'' section: "collab/plugins/c...")
 
 
Line 1: Line 1:
 
== Run Node server with real shell enabled ==
 
== Run Node server with real shell enabled ==
* in bundles/org.eclipse.orion.client.ui/web/defaults.prefs, add the following line in the ''/plugin'' section: "collab/plugins/consolePlugin.html": true
+
* in bundles/org.eclipse.orion.client.ui/web/defaults.prefs, add the following line in the ''/plugin'' section: "plugins/consolePlugin.html":true,
 
* in modules/orionode, run ''npm install node-pty''
 
* in modules/orionode, run ''npm install node-pty''
 
* run Node Server
 
* run Node Server

Latest revision as of 14:19, 16 August 2017

Run Node server with real shell enabled

  • in bundles/org.eclipse.orion.client.ui/web/defaults.prefs, add the following line in the /plugin section: "plugins/consolePlugin.html":true,
  • in modules/orionode, run npm install node-pty
  • run Node Server

(Optional)Export Orion host Url to server app running in the shell with a specific port

So for example https://whateverHostUrl/orion is where Orion editor page is, then make https://whateverHostUrl/ direct to the app running in the Orion Shell with a pre-defined port number( When starting orion, user has to know which port number he want to use for the app runs in the shell)

  • in modules/orionode/orion.conf, give orion.proxy.port a value, like 3000, this is the pre-defined port number
  • in modules/orionode/orion.conf, set orion.context.listenPath to true
  • in modules/orionode/orion.conf give orion.context.path a path, like '/orion'.
  • run “npm install http-proxy”
  • run Node Server

Back to the top