Skip to content

Commit 394373b

Browse files
committed
Added vagrant and puppet.
1 parent 3b93de5 commit 394373b

File tree

6 files changed

+240
-87
lines changed

6 files changed

+240
-87
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ Thumbs.db
1919

2020
# test site basic auth
2121
public/.htpasswd
22+
23+
# vagrant
24+
.vagrant

Diff for: bootstrap/start.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
|
2525
*/
2626

27-
$env = $app->detectEnvironment(array(
28-
'local' => array('laravelsnippets.dev', 'JOHNs-MacBook-Pro.local'),
29-
'testing' => array('laravelsnippets.testing'),
30-
'production' => array('laravelsnippets.com'),
31-
));
27+
$env = $app->detectEnvironment(function()
28+
{
29+
if (!empty($_SERVER["APPLICATION_ENVIRONMENT"]))
30+
{
31+
return $_SERVER["APPLICATION_ENVIRONMENT"];
32+
}
33+
34+
return "production";
35+
});
3236

3337
/*
3438
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)