Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # parse the current directory name
- currentdirectory=${PWD##*/}
- # create the wp-config file with our standard setup
- wp-cli.phar core config --dbname=$dbname --dbuser=$dbuser --dbpass=$dbpass --extra-php <<PHP
- // Enable WP_DEBUG mode
- define('WP_DEBUG', true);
- // Enable Debug logging to the /wp-content/debug.log file
- define('WP_DEBUG_LOG', true);
- // Disable display of errors and warnings
- define('WP_DEBUG_DISPLAY', true);
- @ini_set('display_errors', 1);
- @ini_set('error_reporting', E_ALL);
- define('SCRIPT_DEBUG', true);
- define('SUNRISE', 'on');
- /* Multisite */
- define('WP_ALLOW_MULTISITE', true);
- define('MULTISITE', true);
- define('SUBDOMAIN_INSTALL', false);
- define('DOMAIN_CURRENT_SITE', 'http://localhost/${currentdirectory}');
- define('PATH_CURRENT_SITE', '/');
- define('SITE_ID_CURRENT_SITE', 1);
- define('BLOG_ID_CURRENT_SITE', 1);
- define('WP_MEMORY_LIMIT', '256M');
- // Disable the theme and plugin installers and editors...
- define( 'DISALLOW_FILE_MODS', true );
- // ...or just disable the theme/plugin editor
- define( 'DISALLOW_FILE_EDIT', true );
- /* That's all, stop editing! Happy blogging. */
- PHP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement