Skip to content

Commit

Permalink
Removed database settings steps from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoofman committed Jan 2, 2012
1 parent f4967c0 commit 64363ab
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions README.md
Expand Up @@ -21,36 +21,15 @@ Add a database to your app

$ heroku addons:add shared-database:5mb
> -----> Adding shared-database:5mb to strange-turtle-1234... done, v3 (free)

Retrieve database info (You'll need this info when setting up the WordPress config)

$ heroku config
> DATABASE_URL => postgres://username:password@host/database_name
> SHARED_DATABASE_URL => postgres://username:password@host/database_name

Create a new branch to modify and save database configuration
Create a new branch for any configuration/setup changes needed

$ git checkout -b "production"
$ git checkout -b production

Copy and edit the `wp-config.php` with the database info from the previous step
Copy the `wp-config.php`

$ cp wp-config-sample.php wp-config.php
$ mate wp-config.php # input and save database info

Enter in database info from `heroku config`

/** The name of the database for WordPress */
define('DB_NAME', 'database_name');

/** Database username */
define('DB_USER', 'username');

/** Database password */
define('DB_PASSWORD', 'password');

/** Database hostname */
define('DB_HOST', 'host');

Clear `.gitignore` and commit `wp-config.php`

$ >.gitignore
Expand Down

0 comments on commit 64363ab

Please sign in to comment.