Comments (1)
I'm not 100% sure that I agree that this is wrong behaviour in general, though it is certainly unexpected in this case.
When you start passenger with passenger start
you are doing so in the dir with the rbenv-vars file, presumably using rbenv in your shell to run the correct ruby, so rbenv will load the initial env var into your shell env. Then when you start passenger it inherits the env vars from your shell, it then starts your app, using a child shell which loads rbenv and rbenv-vars which overrides the inherited env var from the parent shell. When you change the value of the env var in the file the changed value is what overrides the inherited env var so that still works as expected, however when you delete the env var from the rbenv-vars file, and restart the app, loading the env vars from rbenv-vars by the child shell doesn't clobber the inherited env var and thus you get the value from when the parent shell read the file and then started passenger.
This is certainly unexpected when you want the env to be managed by the rbenv-vars file but being able to inherit env vars from the parent process is also an expected capability for passenger. I'd recommend using the env
utility to be sure passenger starts with only the env vars that are necessary to start the child shell which loads your app.
from passenger.
Related Issues (20)
- Unable to locate package libnginx-mod-http-passenger | bullseye HOT 1
- Unable the fetch the repo for mod_passenger HOT 12
- passenger v6.0.21, ruby 3.3.1 with apache crashing. HOT 11
- passenger 6.0.21 will not install on AlmaLinux 9 / RHEL 9 HOT 8
- Unable to Install Passenger HOT 8
- Restore support for MacOS < 10.15 HOT 1
- Estimated Release date of Ubuntu 24.04 APT repository? HOT 12
- Passenger Enterprise zero-downtime restarts & request routing can prolong outages and delay recovery HOT 1
- Downtime https://oss-binaries.phusionpassenger.com HOT 3
- Connection is not closed in response to unrecognized `Transfer-Encoding` values when `Host` header is missing
- https://oss-binaries.phusionpassenger.com is down HOT 2
- TmpIO doesn't respect PassengerDataBufferDir
- Dependency strscan breaks passenger-status command HOT 1
- Passenger Status Metrics Endpoint
- New Apt Origin/Label HOT 6
- rackup version missing in gemspec HOT 4
- apt-get update fails for Jammy due to repository 'Origin' and 'Label' changes HOT 2
- Passenger failing to compile on AlmaLinux9 with required dependencies HOT 1
- Removed EL7 support broke Amazon Linux 2 in 6.0.23 HOT 6
- Passing command line arguments to Node? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.