Skip to content

Instantly share code, notes, and snippets.

@tsykoduk
Created April 9, 2012 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsykoduk/2347227 to your computer and use it in GitHub Desktop.
Save tsykoduk/2347227 to your computer and use it in GitHub Desktop.
Portion of a wp-config.php for heroku
<?php
...
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', $_ENV["XEROUND_DATABASE_NAME"]);
/** MySQL database username */
define('DB_USER', $_ENV["XEROUND_DATABASE_USERNAME"]);
/** MySQL database password */
define('DB_PASSWORD', $_ENV["XEROUND_DATABASE_PASSWORD"]);
/** MySQL hostname */
define('DB_HOST', $_ENV["XEROUND_DATABASE_HOST"] . ':' . $_ENV["XEROUND_DATABASE_PORT"]);
...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment