Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Use environment variables in config
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjswift committed Sep 2, 2012
1 parent 0235a22 commit 2a46457
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions inc/config.php
Expand Up @@ -7,16 +7,16 @@

$config = array(
// REQUIRED VALUES ------------------------------------
'twitter_screenname' => '', // Your Twitter screen name
'timezone' => '', // Choose one of these: http://php.net/manual/en/timezones.php
'path' => '', // Where's your twitter installation on your domain? No end slash, please.
'twitter_screenname' => getenv('TWITTER_SCREENNAME'), // Your Twitter screen name
'timezone' => getenv('TIMEZONE'), // Choose one of these: http://php.net/manual/en/timezones.php
'path' => '/', // Where's your twitter installation on your domain? No end slash, please.
// Database values
'db' => array(
'hostname' => '', // The hostname of your database server. Usually 'localhost'
'username' => '', // The username to log in to your database
'password' => '', // The password to log in to your database
'database' => '', // The database name
'table_prefix' => '' // The prefix to table names in the database
'hostname' => getenv('DB_HOSTNAME'), // The hostname of your database server. Usually 'localhost'
'username' => getenv('DB_USERNAME'), // The username to log in to your database
'password' => getenv('DB_PASSWORD'), // The password to log in to your database
'database' => getenv('DB_DATABASE'), // The database name
'table_prefix' => getenv('DB_TABLE_PREFIX') // The prefix to table names in the database
),

// OPTIONAL -------------------------------------------
Expand Down Expand Up @@ -115,4 +115,4 @@
// profile_sidebar_border_color
// .. or any one of the other variable names seen above
);
global $config;
global $config;

0 comments on commit 2a46457

Please sign in to comment.