Skip to content

Update wordpress wp-config.php template #107

Closed

Description

@tannerjfco

What happened (or feature request):

The template we currently use for wp-config.php is a customized version that makes many assumptions, such as use of a custom core directory, custom uploads, etc.

What you expected to happen:

The wp-config.php file we write should only configure what we minimally need to facilitate a site's import and operation. Beyond that, we should allow the configuration to be easily extended or overridden.

These values should be configured:

  • Database credentials
  • URL of the site (used in WP_SITEURL and WP_HOME
  • WP core directory, if it has been customized. (used in WP_SITEURL and ABSPATH to define location of wp core files)

I think we should leave these to the user if possible:

  • Custom content/plugin/theme directories
  • debug flags
  • Salts - To my knowledge, salts changing should only invalidate active sessions. Importing a site from one env to another, I do not believe this is a concern. We could potentially either auto-generate the salts like we currently do, or leave them undefined and up to the user to define.
  • Any other optional configuration not noted here.

Efforts were made to address this in the dcfg work, so we should be able to largely re-use this updated template: https://github.com/tannerjfco/dcfg/blob/6c81561bc12ce1caad2210efc9b4ec62e6a0d51a/tpl/wordpress_tpl.go

How to reproduce it (as minimally and precisely as possible):

n/a

Anything else do we need to know:

Related source links or issues (like source JIRA issue):

#32 wordpress support

Activity

  1. added this to the milestone on Mar 28, 2017
  2. rickmanelius commented on Mar 28, 2017

    @rickmanelius
    Contributor

    @tannerjfco Adding labels that I think are appropriate. Do you feel like this is to the point of being actionable? What configurations would you propose?

  3. tannerjfco commented on Mar 28, 2017

    @tannerjfco
    ContributorAuthor

    I believe this is actionable. I have added the configurations I think we should define, and the ones we shouldn't.

  4. rickmanelius commented on Mar 28, 2017

    @rickmanelius
    Contributor

    Go forth and conquer the world!

  5. self-assigned this
    on Mar 29, 2017
  6. tannerjfco commented on Apr 18, 2017

    @tannerjfco
    ContributorAuthor

    This is introduced in #123, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions