Skip to content

Commit

Permalink
updated default wp-èackage.json, removes some unwanted merged stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Nov 30, 2023
1 parent a8a8022 commit 774464c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ class WordPressPackage extends Package {
configContent = replaceDbConstant(configContent, 'DB_CHARSET', this.config.wordpress.config.DB_CHARSET);

configContent = replaceEmptySalts(configContent);
configContent = configContent.replace(/database_name_here/, this.config.wordpress.config.DB_NAME);
configContent = configContent.replace(/username_here/, this.config.wordpress.config.DB_USER);
configContent = configContent.replace(/password_here/, this.config.wordpress.config.DB_PASSWORD);
configContent = configContent.replace(/localhost/, this.config.wordpress.config.DB_HOST);
configContent = configContent.replace(/utf8/, this.config.wordpress.config.DB_CHARSET);

// Write the updated content back to wp-config.php
fs.writeFileSync(configPath, configContent, 'utf8');
Expand Down
10 changes: 5 additions & 5 deletions wp-package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "modul-r-blog",
"name": "wordpress",
"wordpress": {
"version": "6.4.1",
"language": "en_US",
"config": {
"DB_NAME": "your_database_name",
"DB_USER": "your_database_user",
"DB_PASSWORD": "your_database_password",
"DB_HOST": "localhost",
"DB_NAME": "my_db_name",
"DB_USER": "my_username",
"DB_PASSWORD": "my_password",
"DB_HOST": "127.0.0.1",
"DB_CHARSET": "utf8",
"DB_COLLATE": "",
"table_prefix": "wp_",
Expand Down

0 comments on commit 774464c

Please sign in to comment.