WordPress Starter Config
A set of files and rules to make development for WordPress websites over different servers a bit easier. Make your own config file for every development stage of a WordPress website.
Add one of these files to the WordPress base directory on your server. For clarity use these befitting the development stage. If you are using a version management system like Git you should exclude these files. local-config.php dev-config.php staging-config.php production-config.php
Extra Debugging Options
Turn on WordPress debugging using the
?dev_debug=[keyword] at the end of your url. To use this, define the variable
config.php. Now use the supplied string as the
Source: Yoast.com - https://yoast.com/wordpress-debug/
Putting this to use
- Start your WordPress project by unpacking the latest version in your development directory.
- Add the entire WordPress root folder to Git.
- Add the files inside the
wp-starter-configdirectory to the WordPress root folder and rewrite
- Remove any of the
staging-config.phpfiles if you don't plan to use them. Add the database credentials and WordPress settings to the config files. * Use
local-config.phpon the local stack. * Use
dev-config.phpon the development server. * Use
staging-config.phpon the staging server. * Use
production-config.phpon the live server.
- Add the Database settings like you normally would.
- Create Secret Keys by visiting the WordPress.org secret-key service
- Start developing!
Ravi Lautan - Front-end developer