Skip to content
Browse files

setting up multiple config environments

  • Loading branch information...
1 parent 2acc98c commit f8b605cf9022eb6dcd5a8f6757c6a7c0f991baa8 @ajb ajb committed Nov 16, 2012
View
6 application/config/ec2/application.php
@@ -0,0 +1,6 @@
+<?php
+
+return array(
+ 'url' => 'http://rfpez-staging.presidentialinnovationfellows.org',
+ 'key' => getenv('RFPEZ_LARAVEL_KEY')
+);
View
15 application/config/ec2/database.php
@@ -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' => '',
+ )
+ )
+);
View
7 application/config/ec2/error.php
@@ -0,0 +1,7 @@
+<?php
+
+return array(
+
+ 'log' => true
+
+);
View
5 application/config/ec2/mailer.php
@@ -0,0 +1,5 @@
+<?php
+
+return array(
+ 'transport' => false
+);
View
7 application/config/mailer.php
@@ -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
);
View
4 application/config/production/application.php
@@ -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 */
);
View
8 application/config/production/database.php
@@ -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' => '',
)
View
7 application/config/production/error.php
@@ -0,0 +1,7 @@
+<?php
+
+return array(
+
+ 'log' => true
+
+);
View
4 application/config/production/mailer.php
@@ -1,5 +1,7 @@
<?php
return array(
- 'transport' => false
+ 'transport' => Swift_SmtpTransport::newInstance('', 465, 'ssl')
+ ->setUsername('')
+ ->setPassword('')
);
View
7 application/config/staging/application.php
@@ -0,0 +1,7 @@
+<?php
+
+return array(
+ 'url' => '',
+ 'key' => '', /* 30 characters of random gibberish */
+ 'profiler' => true
+);
View
15 application/config/staging/database.php
@@ -0,0 +1,15 @@
+<?php
+
+return array(
+ 'connections' => array(
+ 'mysql' => array(
+ 'driver' => 'mysql',
+ 'host' => '',
+ 'database' => '',
+ 'username' => '',
+ 'password' => '',
+ 'charset' => 'utf8',
+ 'prefix' => '',
+ )
+ )
+);
View
7 application/config/staging/error.php
@@ -0,0 +1,7 @@
+<?php
+
+return array(
+
+ 'log' => true
+
+);
View
9 application/config/staging/mailer.php
@@ -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')
+);
View
5 paths.php
@@ -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*')
);
// --------------------------------------------------------------

0 comments on commit f8b605c

Please sign in to comment.
Something went wrong with that request. Please try again.