Comments (3)
In general, .profile and .bashrc are geared toward setting up an environment for interactive use, so if you can get your app to work without sourcing .bashrc
my recommendation would be not to source .bashrc
.
That said, I've seen many deployments which source .bashrc
just because that's where an interactive setup of, say, rbenv
or rvm
leaves the magic to hook up the ruby version manager by default. It's not wrong, it's just brittle.
Not sure if the issue tracker is the best venue for this discussion BTW.
from passenger-systemd.
I agree with @driehuis, as the apps are run as system services, they should run mostly independent of some user's shell profiles. That being said, this repo provides just example files which you're free to adapt to your local setup. I'd however recommend to put any environment configurations in a separate file, to make them reproducible.
Actually, an earlier version of passenger-systemd required a so-called env file, which is a feature supported by systemd:
passenger-systemd/[email protected]
Line 12 in cdb4dff
There even was a rake task to generate it, which hasn't been removed yet, although it's no longer used. If you need special environment settings for your apps to run, it might be a way to go. Just change your local service file accordingly.
from passenger-systemd.
@driehuis @mtgrosser thanks for the tip, it's very much appreciated. I'm closing this then ;)
from passenger-systemd.
Related Issues (3)
- Dynamic RAILS_ENV HOT 1
- rbfu is it mandatory? HOT 2
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-systemd.