-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ss_environment.php
executable file
·119 lines (98 loc) · 3.45 KB
/
_ss_environment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
/**
* Configure SilverStripe from the _ss_environment.php file.
*
* Edit this file and rename from _ss_environment.sample.php to _ss_environment.php.
* Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file.
* http://doc.silverstripe.org/framework/en/trunk/topics/environment-management
*/
/**
* The environment type: dev, test or live.
*/
define('SS_ENVIRONMENT_TYPE', 'dev');
/**
* The username of the default admin - this is a non-database user with administrative privileges.
*/
define('SS_DEFAULT_ADMIN_USERNAME', 'admin');
/**
* The password of the default admin.
*/
define('SS_DEFAULT_ADMIN_PASSWORD', 'password');
/**
* Protect the site with basic auth (good for test sites)
*/
define('SS_USE_BASIC_AUTH', false);
/**
* The database class to use, MySQLDatabase, MSSQLDatabase, etc. defaults to MySQLDatabase
*/
define('SS_DATABASE_CLASS', 'MySQLDatabase');
/**
* The database server to use, defaulting to localhost
*/
define('SS_DATABASE_SERVER', 'localhost');
/**
* The database username (mandatory)
*/
define('SS_DATABASE_USERNAME', 'root');
/**
* The database password (mandatory)
*/
define('SS_DATABASE_PASSWORD', '');
/**
* Set the database name.
* Assumes the $database global variable in your config is missing or empty.
*/
define('SS_DATABASE_NAME', 'ss_bodybyparis');
/**
* Boolean/Int. If set, then the system will choose a default database name for you if one isn't give in the $database variable.
* The database name will be "SS_" followed by the name of the folder into which you have installed SilverStripe.
* If this is enabled, it means that the phpinstaller will work out of the box without the installer needing to alter any files.
* This helps prevent accidental changes to the environment.
* If SS_DATABASE_CHOOSE_NAME is an integer greater than one, then an ancestor folder will be used for the database name.
* This is handy for a site that's hosted from /sites/examplesite/www or /buildbot/allmodules-2.3/build.
* If it's 2, the parent folder will be chosen; if it's 3 the grandparent, and so on.
*/
define('SS_DATABASE_CHOOSE_NAME', false);
/**
* Specify database port.
*/
//define('SS_DATABASE_PORT', '');
/**
* A prefix to add to the database name.
*/
//define('SS_DATABASE_SUFFIX', '');
/**
* Set the database timezone to something other than the system timezone
*/
//define('SS_DATABASE_TIMEZONE', '');
/**
* Absolute file path to store temporary files such as cached templates or the class manifest.
* Needs to be writeable by the webserver user. Defaults to sys_get_temp_dir(), and falls back to silverstripe-cache in the webroot.
* See getTempFolder() in framework/core/Core.php
*/
//define('TEMP_FOLDER', '');
/**
* Set the directory to store assets, defaults to `assets`.
*/
//define('ASSETS_DIR', 'assets');
/**
* Alternatively, set the full path to store assets, defaults to `BASE_PATH . '/' . ASSETS_DIR`.
*/
//define('ASSETS_PATH', '');
/**
* This causes errors to be written to the silverstripe.log file in the same directory as this file.
*/
define('SS_ERROR_LOG', 'silverstripe.log');
/**
* If you set this define, all emails will be redirected to this address.
*/
//define('SS_SEND_ALL_EMAILS_TO', '');
/**
* If you set this define, all emails will be send from this address.
*/
//define('SS_SEND_ALL_EMAILS_FROM', '');
/**
* This is used by sake to know which directory points to which URL
*/
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING[__DIR__] = 'http://example.com';