WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33161, comment 3


Ignore:
Timestamp:
07/07/2016 11:45:46 AM (4 years ago)
Author:
Maelacuna
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33161, comment 3

    initial v1  
    55This would avoid ever having to edit wp-config.php for configuration, like database credentials, as well as giving the ability to define enviroment variables for plugins, themes, etc. if desired. API keys spring to mind as an example. These things can then be kept out of the code base, out of version control, and even out of the document root if desired.
    66
    7 @Frank Klein - Item 3 of the 12 Factor app is specifically about storing config in the environment and not in the code base, so I'm confused why you reference it and then say you're not in favour?
     7Frank, item 3 of the 12 Factor app is specifically about storing config in the environment and not in the code base, so I'm confused why you reference it and then say you're not in favour?
    88
    9 Here is an article by Eric Barnes highlighting one way that dotenv could be incorporated in to WordPress to help manage environments.
     9Here is an article by Eric Barnes highlighting one way that dotenv could be incorporated in to WordPress to help manage environments:
    1010
    1111https://dotdev.co/tutorials/secure-wordpress-config-dotenv/