Basic environment set functionality is in place.

This commit is contained in:
2009-08-15 21:18:31 +03:00
parent da68bb2a21
commit bc4b8979b0
9 changed files with 224 additions and 1 deletions

25
config/environment.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
/*
Zynapse Environment
- configure server environments and display modes
*/
# Default environment - Overridden by host specific
# configurations.
#
# ( development | test | staging | production )
$environment = 'development';
# When enabled, environment and more is set based
# on the current domain that zynapse is running from.
#
# Configure hosts in "config/hosts.php".
$enable_host_specific_configuration = true;
?>

View File

@@ -0,0 +1,5 @@
<?php
?>

View File

@@ -0,0 +1,5 @@
<?php
?>

View File

@@ -0,0 +1,5 @@
<?php
?>

View File

@@ -0,0 +1,5 @@
<?php
?>

26
config/hosts.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
# host configuration
# - set environment, display mode, and root path for
# specific hosts. available options are "environment",
# "mode", and "root".
$hosts = array(
// 'zynapse' => array(
//
// ),
// 'wap.zynapse' => array(
// 'mode' => 'wap',
// ),
// 'admin.zynapse' => array(
// 'root' => 'admin',
// ),
// 'zynapse.org' => array(
// 'environment' => 'production',
// ),
// 'admin.zynapse.org' => array(
// 'environment' => 'production',
// 'root' => 'admin',
// ),
);
?>

5
config/routes.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
?>