SproutCMS

This is the code documentation for the SproutCMS project

source of /config/config.php

This file contains some core configuration directives, including the
list of modules to load.  Another config file to look at
is _bootstrap_config.php which provides the value for IN_PRODUCTION
  1. <?php
  2.  
  3. /**
  4.  * This file contains some core configuration directives, including the
  5.  * list of modules to load. Another config file to look at
  6.  * is _bootstrap_config.php which provides the value for IN_PRODUCTION
  7.  */
  8.  
  9.  
  10. /**
  11.  * Base path of the web site.
  12.  * Most common value would be '/' but it may be something else instead.
  13.  * Should always have a trailing slash.
  14.  */
  15. $config['site_domain'] = '/';
  16.  
  17.  
  18. /**
  19.  * When PHP is called in CLI mode (e.g. a cron script), it cannot
  20.  * autodetect the host name, so you need to specify it here.
  21.  * If you don't, you will get an exception.
  22.  *
  23.  * Examples:
  24.  * example.com
  25.  * test.example.com
  26.  */
  27. if (IN_PRODUCTION) {
  28. $config['cli_domain'] = 'serene-sea-91280.herokuapp.com';
  29. } else {
  30. $config['cli_domain'] = 'harbor-and-sprout.bunnysites.com';
  31. }
  32.  
  33.  
  34. /**
  35. * Remove these three lines once SproutCMS has been set up
  36. **/
  37. //Sprout\Helpers\Register::modules([
  38. // 'Welcome',
  39. //]);
  40.  
  41.  
  42. /**
  43.  * Enabled sprout v3 modules
  44.  */
  45. Sprout\Helpers\Register::modules([
  46. 'HarborAndSprout',
  47. 'HomePage',
  48. ]);
  49.