environment.php 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /*
  3. *---------------------------------------------------------------
  4. * Environment detector
  5. *---------------------------------------------------------------
  6. *
  7. * This is the environment detector, you can return an string or
  8. * an array.
  9. *
  10. * passing an array:
  11. * If you pass an array to the detector he will try to set
  12. * the environment using an hostname pattern example:
  13. * 'local.*' => 'development',
  14. * 'test.*' => 'staging',
  15. * ':all' => 'production',
  16. *
  17. * passing an string:
  18. * Will set the environment directly example:
  19. * return $_SERVER[ 'CCF_ENV' ]
  20. *
  21. */
  22. return array(
  23. /*
  24. * probably an local environment for example:
  25. * localhost
  26. * local.example.com
  27. */
  28. 'local*' => 'development',
  29. /*
  30. * probably an testing environment for example:
  31. * test.example.com
  32. */
  33. 'test.*' => 'test',
  34. /*
  35. * everything else for example:
  36. * www.example.com
  37. * clancats.com
  38. */
  39. ':all' => 'production',
  40. );