# Change sys apps path

**URL:** <https://discourse.openondemand.org/t/change-sys-apps-path/3425>\
**Category:** Get Help\
**Created:** [April 16, 2024, 2:54pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425 "2024-04-16T14:54:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fenz/32/496_2.png) [@fenz](https://discourse.openondemand.org/u/fenz)\
**Post date:** [April 16, 2024, 2:54pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/1 "2024-04-16T14:54:29Z")

</div>

I see there was another thread which may be related to this: [Change default location of /var/www/ood/apps](https://discourse.openondemand.org/t/change-default-location-of-var-www-ood-apps/1259)

Is changing the sys apps path not possible? If not, why the nginx\_stage.yml seems to be configurable?  
I see nothing here: [nginx\_stage.yml — Open OnDemand 3.1.0 documentation](https://osc.github.io/ood-documentation/latest/reference/files/nginx-stage-yml.html#configuration-options) mentioning the “only” path we can configure is the “dev” one.  
Is there any plan to allow this customization?

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 16, 2024, 3:24pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/2 "2024-04-16T15:24:25Z")

</div>

If you read the docs in the `nginx_stage` you shared you see a setting to do exactly this called `app_root`. It lets you set either the `dev`, `sys`, or `usr` to a location of your choosing.

---

<div class="post-metadata">

**Author:** ![fenz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fenz/32/496_2.png) [@fenz](https://discourse.openondemand.org/u/fenz)\
**Post date:** [April 16, 2024, 5:09pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/3 "2024-04-16T17:09:07Z")

</div>

Yes, that’s my point. It is documented but the setting of “sys” path doesn’t really make any difference.  
Checking the other conversation I linked in my previous message (the first of the 2 links) it seems the sys path is hardcoded in the dashboard app: [ondemand/apps/dashboard/app/apps/sys\_router.rb at master · OSC/ondemand · GitHub](https://github.com/OSC/ondemand/blob/master/apps/dashboard/app/apps/sys_router.rb#L33)

That’s why I was wondering if that can be changed or at least mentioned in the documentation (since I spent quite some time trying to understand why was not working)

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 16, 2024, 5:12pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/4 "2024-04-16T17:12:21Z")

</div>

Ok, I didn’t get that from the post. You may have found a bug. I’ll have to check on my side to see and open an issue if so.

---

<div class="post-metadata">

**Author:** ![fenz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fenz/32/496_2.png) [@fenz](https://discourse.openondemand.org/u/fenz)\
**Post date:** [April 16, 2024, 5:14pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/5 "2024-04-16T17:14:34Z")

</div>

There’s already an issue opened long time ago but I think never addressed: [Make path to /var/www/ood/apps apps directory easily configurable · Issue #782 · OSC/ondemand · GitHub](https://github.com/OSC/ondemand/issues/782)

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 16, 2024, 5:30pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/6 "2024-04-16T17:30:32Z")

</div>

haha, ok. Looks like this is an old issue and it’s still open. I’m going to open another issue against the docs to remove that setting for now as well since it doesn’t work.

> <https://github.com/OSC/ood-documentation/issues/960>
>
> Looks like we have some functionality in the docs that doesn't work and has been… broken for a while.
> 
> The issue in the code is here: https://github.com/OSC/ondemand/issues/782
> 
> And the portion of the docs to remove is here: https://osc.github.io/ood-documentation/latest/reference/files/nginx-stage-yml.html?highlight=app\_root
> 
> So let's either remove this for now until the patch gets in or prioritize the fix.

---

<div class="post-metadata">

**Author:** ![fenz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fenz/32/496_2.png) [@fenz](https://discourse.openondemand.org/u/fenz)\
**Post date:** [April 17, 2024, 7:08am UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/7 "2024-04-17T07:08:36Z")

</div>

So, app\_root works in case of “dev”, so that part in the documentation is fine.  
Instead, the “sys” path setting seems not to work. I didn’t test the “usr” path but it looks also hardcoded in the dashboard app.  
Anyway, thanks for opening an issue to update the documentation. Is there a plan to allow the customization of “sys” path?

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 18, 2024, 2:42pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/8 "2024-04-18T14:42:58Z")

</div>

There’s nothing on the road map to address this at the moment. But, I’ve updated the github issue to label this as a bug and community request which will bump up the priority. We have weekly meetings around those issues so this helps ensure the work is prioritized. I will try to circle back when I know more.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 15, 2024, 2:43pm UTC](https://discourse.openondemand.org/t/change-sys-apps-path/3425/9 "2024-10-15T14:43:29Z")

</div>

Closed on October 15, 2024, 2:43pm UTC

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