Developing the Shell App¶
The shell
app is significantly different from the dashboard app. It is purely a node.js
app.
This means that we only need to use npm
to build and do dev work.
Create a Dev Shell¶
clone
the OOD repo into:cd ~/ondemand/misc
thengit clone git@github.com:OSC/ondemand.git
Work out of the
dev
directory/space:cd ~/ondemand/dev/
.Symlink to the
shell
app in the cloned repo:ln -s ../misc/ondemand/apps/dashboard/shell/ shell
Make a branch and to begin word on your dev dashboard:
git checkout -b dev_work
Rebuild the
shell
app:bin/setup
.Navigate to the Sandbox and launch your dev
shell
app to use thedev_work
branch.
Notice the url
for this app. No longer do you see */sys/shell
but instead */dev/shell
.
Build Old Version of Shell¶
pull down ondemand in
~/ondemand/misc
then list versions with
git tags
run
git checkout <version>
now make a branch with your changes and use
bin/setup
to rebuild if needed
Then for the shell app from a login terminal run:
cd dev
ln -s ../misc/ondemand/apps/dashboard/shell/ shell-18
And then step into that symlinked directory and run:
#. bin/setup
If you go start this app from sandbox you’ll notice a different url than before,
showing you are in a dev shell: pun/dev/shell-1.8
Issues and Errors¶
Ensure you are using the correct version of Node when you go to build using nvm
if possible. Sometimes
this can be set automatically for you in your .bashrc
so just ensure you are on the version you should
be when you run bin/setup
.
Develop the Shell¶
At this point we have a working dev shell
and can start to make changes to this code and issue rebuilds
for npm
with bin/setup
when needed.