Skip to content

Instantly share code, notes, and snippets.

@mocheng
Created February 16, 2012 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mocheng/1842969 to your computer and use it in GitHub Desktop.
Save mocheng/1842969 to your computer and use it in GitHub Desktop.
Setup of dev/test/prod environment
<VirtualHost *>
ServerName xxx.xxx.com
DocumentRoot "/var/www/html"
DirectoryIndex index.php
SetEnv XXX_ENV "development"
</VirtualHost>
define ('ENVIRONMENT', $_SERVER['XXX_ENV']);
<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