# Customize passenger environment for apps

**URL:** <https://discourse.openondemand.org/t/customize-passenger-environment-for-apps/2465>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [February 7, 2023, 12:43am UTC](https://discourse.openondemand.org/t/customize-passenger-environment-for-apps/2465 "2023-02-07T00:43:27Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [February 15, 2023, 9:44pm UTC](https://discourse.openondemand.org/t/customize-passenger-environment-for-apps/2465/15 "2023-02-15T21:44:35Z")

</div>

> [@milberg](#):
>
> So that part seems to be working. But directories `passenger.NAME` are still being created in `/tmp`. (I’ve been checking these since they’re always created, although `RackMultipartNAME.dta` are more important to place in a different location.) Should directories `passenger.NAME` be created in TMPDIR, or am I checking the wrong thing?

Sorry - I should have been clearer. Yes what you are seeing is what I anticipated. Setting the TMPDIR in that location is only for the dashboard, which is lower in the stack than Passenger. In any case, I thought the `RackMultipartNAME` are the real culprit for blowing up any drive, and so was focusing on that.

For the other settings/other temporary passenger things, maybe you’re looking for this or at least I’d search that page for `tmp` to indicate how you can migrate _everything_ off of that directory.

[https://www.phusionpassenger.com/library/config/nginx/reference/#passenger\_instance\_registry\_dir](https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_instance_registry_dir)

---

_[View the full topic](https://discourse.openondemand.org/t/customize-passenger-environment-for-apps/2465)._
