Created
February 16, 2012 07:28
-
-
Save mocheng/1842969 to your computer and use it in GitHub Desktop.
Setup of dev/test/prod environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *> | |
ServerName xxx.xxx.com | |
DocumentRoot "/var/www/html" | |
DirectoryIndex index.php | |
SetEnv XXX_ENV "development" | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define ('ENVIRONMENT', $_SERVER['XXX_ENV']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *> | |
ServerName xxx.xxx.com | |
DocumentRoot "/var/www/html" | |
DirectoryIndex index.php | |
SetEnv XXX_ENV "production" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment