Skip to content

Commit

Permalink
Remove list from readme and move DB_COLLATE from .env.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Mar 18, 2015
1 parent 78405c5 commit 3d7126c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ DB_NAME=wordpress
DB_USER=homestead
DB_PASSWORD=secret
DB_CHARSET=utf8
DB_COLLATE=

EMPTY_TRASH_DAYS=7

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ A boilerplate theme filled with actions and filters to get the most out of WordP
A Server Settings page. This page lists server configuration. Instead of login in to the server you can visit this page to get the necessary information. Located under *Settings > Server*.

## Installation
1. Start by creating a new project with composer.
Start by creating a new project with composer.

```bash
composer create-project vinkla/wordpress awesome-project
```

2. Add the database credentials and [salts](https://api.wordpress.org/secret-key/1.1/salt) to the `.env` configuration environment file.
Add the database credentials and [salts](https://api.wordpress.org/secret-key/1.1/salt) to the `.env` configuration environment file.
```
WP_DEBUG=false
Expand All @@ -35,7 +35,6 @@ DB_NAME=wordpress
DB_USER=homestead
DB_PASSWORD=secret
DB_CHARSET=utf8
DB_COLLATE=
EMPTY_TRASH_DAYS=7
Expand All @@ -51,9 +50,9 @@ LOGGED_IN_SALT=yourrandomstring
NONCE_SALT=yourrandomstring
```

3. Open up your browser and visit the project URL with `/wordpress/wp-admin/install.php` to install WordPress.
Open up your browser and visit the project URL with `/wordpress/wp-admin/install.php` to install WordPress.

4. Login and visit *Settings > General* page and remove `/wordpress` from Site Address. This can also be updated in the database in the `wp_options` table, the column name i `home`.
Login and visit *Settings > General* page and remove `/wordpress` from Site Address. This can also be updated in the database in the `wp_options` table, the column name i `home`.

Thats it. We're done. Lets build stuff!

Expand Down
6 changes: 3 additions & 3 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
define('DB_CHARSET', getenv('DB_CHARSET'));

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', getenv('DB_COLLATE'));
define('DB_COLLATE', getenv('DB_COLLATE') ?: '');

/** Custom content directory. */
define('WP_CONTENT_DIR', __DIR__.'/wp-content');
define('WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/wp-content');

/** Set the trash to less days to optimize WP. */
define('EMPTY_TRASH_DAYS', getenv('EMPTY_TRASH_DAYS')); // default 30
define('EMPTY_TRASH_DAYS', getenv('EMPTY_TRASH_DAYS') ?: 30); // default 30

/**#@+
* Authentication Unique Keys and Salts.
Expand Down Expand Up @@ -81,7 +81,7 @@
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', getenv('WP_DEBUG'));
define('WP_DEBUG', getenv('WP_DEBUG') ?: false);

/* That's all, stop editing! Happy blogging. */

Expand Down

0 comments on commit 3d7126c

Please sign in to comment.