Skip to content

Commit bc4fc03

Browse files
committed
Treat dev.mysite.com as dev env
Right now you retreat mysite.dev as dev env, I would also like to treat dev.mysite.com as dev env.
1 parent e1f249a commit bc4fc03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
preg_match('/^127\.0\.0\.1.*/', $_SERVER['HTTP_HOST'])
99
or preg_match('/^localhost.*/', $_SERVER['HTTP_HOST'])
1010
or preg_match('/^.*\.dev$/', $_SERVER['HTTP_HOST'])
11+
or preg_match('/^dev\..*$/', $_SERVER['HTTP_HOST'])
1112

1213
) ? 'development' : 'production');
1314

0 commit comments

Comments
 (0)