Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion config/public/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@

/** Database Charset to use in creating database tables. */
define("DB_CHARSET", "utf8");
/** Support WORDPRESS_DIR */
$siteurl = getenv("WORDPRESS_DIR");

/** Allows both foobar.com and foobar.herokuapp.com to load media assets correctly. */
define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"]);
if (!empty($siteurl))
define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"] . "/" . $siteurl);
else
define("WP_SITEURL", "http://" . $_SERVER["HTTP_HOST"]);

/** WP_HOME is your Blog Address (URL). */
// define('WP_HOME', "http://" . $_SERVER["HTTP_HOST"]);
Expand Down