Skip to content

Commit 4bfd9bc

Browse files
committed
Changes default table prefix.
1 parent cf36f26 commit 4bfd9bc

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ All configuration is done in the `.env.sh` file, rather than in the scripts them
7979

8080
All settings that are prefaced with `GLOBAL_` apply to **all** environments.
8181

82-
`GLOBAL_DB_TABLE_PREFIX` is the WordPress database table prefix, usually `wordpress_`
82+
`GLOBAL_DB_TABLE_PREFIX` is the WordPress database table prefix, usually `wp_`
8383

8484
`GLOBAL_WP_PATH` is the path of the `wp-admin` folder, relative to the root path. This should normally be `wp-admin/`, unless you have moved it elsewhere. Paths should always have a trailing `/`
8585

scripts/common/defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# -- GLOBAL settings --
1313

1414
# What to prefix the database table names with
15-
GLOBAL_DB_TABLE_PREFIX="wordpress_"
15+
GLOBAL_DB_TABLE_PREFIX="wp_"
1616

1717
# The path of the `wp-admin` folder, relative to the root path; paths should always have a trailing /
1818
GLOBAL_WP_PATH="wp-admin/"

scripts/example.env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# -- GLOBAL settings --
1616

1717
# What to prefix the database table names with
18-
GLOBAL_DB_TABLE_PREFIX="wordpress_"
18+
GLOBAL_DB_TABLE_PREFIX="wp_"
1919

2020
# The path of the `wp-admin` folder, relative to the root path; paths should always have a trailing /
2121
GLOBAL_WP_PATH="wp-admin/"

scripts/install_wp.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ wp core download --path=${LOCAL_ROOT_PATH}
4646

4747
# Generate the wp-config.php file
4848
wp core config --path=${LOCAL_ROOT_PATH} --dbname=${LOCAL_DB_NAME} --dbuser=${LOCAL_DB_USER} --dbpass=${LOCAL_DB_PASSWORD} --extra-php <<PHP
49+
define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);
50+
define('WP_SITEURL', SP_REQUEST_URL);
51+
define('WP_HOME', SP_REQUEST_URL);
4952
define('WP_DEBUG', true);
5053
define('WP_DEBUG_LOG', true);
5154
define('WP_DEBUG_DISPLAY', true);

0 commit comments

Comments
 (0)