Created
September 10, 2012 16:35
-
-
Save ziadoz/3691980 to your computer and use it in GitHub Desktop.
PHP and Apache Environment Configuration
This file contains 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
<?php | |
define('ENV', getenv('ENV') !== false ? getenv('ENV') : 'development'); | |
/* OR */ | |
define('ENV', isset($_SERVER['ENV']) ? $_SERVER['ENV'] : 'development'); |
This file contains 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 *:80> | |
SetEnv ENV production | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment