Hello,
I wrote a passenger app under Ruby for OOD to display some usage information specific to our cluster/site. It’s based on the OSC sample code
I set it up in a dev area of my account, made the code changes, tested everything was working and happy. I then copied the code over to /var/www/ood/apps/sys, updated my nav_bar YAML, restarted the PUN and it shows up correctly on the portal menu
When I click the Usage link from the menu bar, it opens a new tab as requested but gives me a App has not been initialized or does not exist warning:
If I click Initialize App, then it works fine. I only seem to have to do this once. Problem is, every one of my users gets the same warning the first time they go to that app, so I’m guessing there is some additional step I need to do to somewhere inside OOD to solve this so the app is pre-initialized or something.
Ok, looks like I need to create a .conf file in /var/lib/ondemand-nginx/config/apps/sys that matches my passenger app, similar to the dashboard.conf, myjobs.conf and shell.conf files.
I copied shell.conf to myapp.conf and changed it to:
I didn’t know this myself, so had to look it up. It appears for our applications we do a couple things in our RPM when installing these passenger apps (not during updates).
first we touch the .conf file to ensure it exists
Then we issue /opt/ood/nginx_stage/sbin/update_nginx_stage.
So I think the basic guidance is to do that: touch the appropriate file, then let our libraries fill it out for you.
As to the headers in the config file - I think you can do what you wish with them, though if you run the update_nginx_stage command, it may overwrite any updates you’ve provided.