User specific folder

Since the home dir is not shared in our institute, I am using a shared storage like /ddn for slurm. First I successfully created an app for /ddn like the file app for the user home dir as instructed by ChatGPT.

cat manifest.yml

name: DDN Shared Storage
description: Browse shared data under /ddn/users
category: Files
icon: fas://hdd
role: web
new_window: false

cat public/index.html

Redirecting to /ddn/users...

Second I tried to create an app for user specific dir under /ddn like /ddn/users/alice. ChatGPT instructed to create views/index.html.erb for dynamic dir.

cat manifest.yml

name: My DDN Directory
description: Access your /ddn/users/$USER directory
category: Files
icon: fas://folder-open
role: web
new_window: false

cat views/index.html.erb

'" />

Redirecting to your /ddn directory...

However, it didn’t work. Could you please let me know how to achieve this?

Thanks in advance,
Justin

If you’re trying to just allow users to browse that location, then I believe you just want to add shortcuts to the menus.

I don’t believe you need another “application” for file browsing. Moreover, applications are meant to really be jobs on your scheduler. For example you may want an Rstudio or Jupyter application.

For file browsing, we already have the files application that can navigate to any directory. Centers generally just add shortcuts like the link I’ve given below.

That said - to get an application like Rstudio or Jupyter to work, you do have to have your HOME drive mounted in the same place on the OnDemand’s webserver node. When we submit jobs from OnDemand we make directories what will end up being the CWD of the job. So this CWD has to exist on both the OnDemand machine when we submit the job and the compute node when it runs.

I have read the documentation and can create some directories in the File menu. However, what I want is to create icons for some directories like the home directory.

Thanks,
Justin