Guide for Environment Variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcbeinder
    Member
    • May 2018
    • 68

    Guide for Environment Variables

    Good Afternoon All,

    Is there any official guidance on using environment variables in the config files? Is there a helper function that we should be using or is it okay to use the $_ENV super global? I haven't been able to find anything in the docs. I'm looking at docker as a potential solution, but that only abstracts the issue, it doesn't solve it.

    PHP Code:
    $_ENV['ENV_VARIABLE_NAME'] 
    

    Thanks,
    Marc
  • yuri
    Member
    • Mar 2014
    • 8621

    #2
    HI Marc, This improvement for v8.2 will be helpful. No ETA yet. https://github.com/espocrm/espocrm/issues/2916
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • marcbeinder
      Member
      • May 2018
      • 68

      #3
      Wonderful! Thanks yuri!

      Comment

      • llen
        Junior Member
        • Dec 2023
        • 11

        #4
        hi i want ask something. how i can add file storage parameter in data/config-internal.php but by using docker compose environment

        Comment

        Working...