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

Commit

Permalink
setting up multiple config environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Nov 16, 2012
1 parent 2acc98c commit f8b605c
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 15 deletions.
6 changes: 6 additions & 0 deletions application/config/ec2/application.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return array(
'url' => 'http://rfpez-staging.presidentialinnovationfellows.org',
'key' => getenv('RFPEZ_LARAVEL_KEY')
);
15 changes: 15 additions & 0 deletions application/config/ec2/database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return array(
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => getenv('RFPEZ_DB_HOST'),
'database' => getenv('RFPEZ_DB_NAME'),
'username' => getenv('RFPEZ_DB_USERNAME'),
'password' => getenv('RFPEZ_DB_PASSWORD'),
'charset' => 'utf8',
'prefix' => '',
)
)
);
7 changes: 7 additions & 0 deletions application/config/ec2/error.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return array(

'log' => true

);
5 changes: 5 additions & 0 deletions application/config/ec2/mailer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return array(
'transport' => false
);
7 changes: 1 addition & 6 deletions application/config/mailer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

return array(
'transport' => Swift_SmtpTransport::newInstance('', 465, 'ssl')
->setUsername('')
->setPassword(''),

// Until we're in production, don't actually send emails to our real recipients.
'send_all_to' => 'rfpez@sba.gov'
'transport' => false
);
4 changes: 2 additions & 2 deletions application/config/production/application.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return array(
'url' => 'http://rfpez-staging.presidentialinnovationfellows.org',
'key' => getenv('RFPEZ_LARAVEL_KEY')
'url' => 'https://rfpez.sba.gov',
'key' => '' /* 30 characters of random gibberish */
);
8 changes: 4 additions & 4 deletions application/config/production/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => getenv('RFPEZ_DB_HOST'),
'database' => getenv('RFPEZ_DB_NAME'),
'username' => getenv('RFPEZ_DB_USERNAME'),
'password' => getenv('RFPEZ_DB_PASSWORD'),
'host' => '',
'database' => '',
'username' => '',
'password' => '',
'charset' => 'utf8',
'prefix' => '',
)
Expand Down
7 changes: 7 additions & 0 deletions application/config/production/error.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return array(

'log' => true

);
4 changes: 3 additions & 1 deletion application/config/production/mailer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

return array(
'transport' => false
'transport' => Swift_SmtpTransport::newInstance('', 465, 'ssl')
->setUsername('')
->setPassword('')
);
7 changes: 7 additions & 0 deletions application/config/staging/application.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return array(
'url' => '',
'key' => '', /* 30 characters of random gibberish */
'profiler' => true
);
15 changes: 15 additions & 0 deletions application/config/staging/database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return array(
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => '',
'database' => '',
'username' => '',
'password' => '',
'charset' => 'utf8',
'prefix' => '',
)
)
);
7 changes: 7 additions & 0 deletions application/config/staging/error.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return array(

'log' => true

);
9 changes: 9 additions & 0 deletions application/config/staging/mailer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return array(
'transport' => Swift_SmtpTransport::newInstance('', 465, 'ssl')
->setUsername('')
->setPassword(''),

'send_all_to' => array('adam@presidentialinnovationfellows.org', 'jed@presidentialinnovationfellows.org')
);
5 changes: 3 additions & 2 deletions paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
$environments = array(
'test' => array('http://*-test*'),
'local' => array('http://localhost*', '*.dev'),
'production' => array('http://rfpez-staging.presidentialinnovationfellows.org*')

'ec2' => array('http://rfpez-staging.presidentialinnovationfellows.org*'),
'staging' => array('*rfpez-staging.reisys.com*'),
'production' => array('*rfpez.sba.gov*')
);

// --------------------------------------------------------------
Expand Down

0 comments on commit f8b605c

Please sign in to comment.