kaitlinhuben/orion.client — pull request #1 by kaitlinhuben (2014-03-13 04:28:59+00:00)
Title: Bug424371 - global installation vs local installation

Creates a global installation for Orion node.

To test:
```
cd modules/orionode
./build/make-publish.sh tempfolder
cd tempfolder
npm pack
sudo npm install -g orion-0.0.27.tgz
```

Can then run "orion" from any directory. Current functionality includes:
- ```orion```: launches orion on port 8081 using current working directory
- ```orion ```: launches orion on port 8081 using workspaceDir
- ```orion -p ```: launches orion on portno using cwd
- ```orion -p ```: launches orion on portno using workspaceDir
- ```orion -w -p ```: same as above, except order can be switched

Error thrown & exit if workspaceDir cannot be found/opened.