Skip to content

Integration wp-config file in Wordpress for switch environment: local, staging and production development.

Notifications You must be signed in to change notification settings

ffranz/wp-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Config

Integration wp-config file in Wordpress for switch environment: local, staging and production development.


How to use

  1. Copy repository on Wordpress root.
git clone https://github.com/ffranz/wp-config.git
  1. Replace DEFINE variables in wp-config.php with this:
require('wp-config/wp-environments.php');
  1. Change variable on .local, .staging and .production file.
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');
define('DB_PASSWORD', 'password_here');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
  1. Enjoy!

About

Integration wp-config file in Wordpress for switch environment: local, staging and production development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages