GithubHelp home page GithubHelp logo

Comments (3)

driehuis avatar driehuis commented on May 29, 2024

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.

mtgrosser avatar mtgrosser commented on May 29, 2024

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:

EnvironmentFile=/apps/%i/current/config/passenger.env

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.

rraallvv avatar rraallvv commented on May 29, 2024

@driehuis @mtgrosser thanks for the tip, it's very much appreciated. I'm closing this then ;)

from passenger-systemd.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.