Skip to main content
Jump to: navigation, search

Orion/How Tos/Setup Orion Client Hosted Site on OrionHub

< Orion‎ | How Tos
Revision as of 10:38, 15 June 2011 by (Talk | contribs) (update for 0.2)

The site definition feature in Orion allows you to map folders in your workspace to a site definition, so that you can host a site within Orion. What's really cool about this is that you can use this feature to host sites from your Orion hub account. For example, there is a hosted site running the Orion embedded editor example at

Setting up the Site

To run something like the embedded editor example, you would need to host the orion editor, the rest of the orion client core code, and dojo.

When hosting a site from your orionhub account, you cannot expect to make calls to the orionhub server to do things like retrieve files in your workspace. This is because of the "same domain" restriction. Hosted sites are located at, whereas the user's workspace server is running on However, this setup can still be very useful for running Orion client components such as the editor, outliner, content assist, custom dojo applications, etc.

To set up such a site, you need to do the following:

  • Log in to Orionhub
  • Click on the "Repositories" link in the top of the navigator page.
  • On the repositories page, there is a button on the right hand side for cloning a git repository. Click it, and when asked for a Repository URL, use

  • Once the clone finishes, go to the navigator. You'll see a new folder called org.eclipse.orion.client.
  • From the navigator, create a new top-level folder called dojo. Use the Zip Import feature to import the dojo 1.5.1 zip file into it.
    • You should now have a folder structure like the following:
      • dojo/dojo-release-1.5.1/dojo
      • dojo/dojo-release-1.5.1/dijit
      • dojo/dojo-release-1.5.1/dojox
  • Click on the "Sites" link at the top of the navigator page to create a new site.
    • Mount the paths as follows:
Workspace path Mount at
/org.eclipse.orion.client/bundles/org.eclipse.orion.client.editor/web /
/dojo/dojo-release-1.5.1 /org.dojotoolkit

Copyright © Eclipse Foundation, Inc. All Rights Reserved.