Adding quota info inside of app

Hi. I’m creating an app and was wondering if it was possible to display the current user quota at the top of it, so before they launch it, they can see how much space is available.

Is that possible to do? I was originally thinking I could stick some code in the form.yml.erb, but it’s not really a form-type piece of information, but maybe that’s the best way to do it.

Hello! There’s 2 ways you could go about this I think.

The first is to try and use the threshold but maybe set it lower to something like 50% to display the usage early: Customization — Open OnDemand 2.0.20 documentation

The other option is to look at something like the Status App which is a passenger app that sounds to be similar to what you are after. Just swap out the CLI command to list disk usage instead of processes: Creating a Status App — Open OnDemand 2.0.20 documentation

Hopefully one of those options is viable for you, but let me know if not.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.