mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Comment about dev mode (merged from 2.0.2 branch, r38246)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40485 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
980438a322
commit
9e80b5e840
16
install.php
16
install.php
@ -508,14 +508,14 @@ global \$databaseConfig;
|
||||
"database" => "{$config['mysql']['database']}",
|
||||
);
|
||||
|
||||
// If we're running on local host, or a server with 'dev.' in its
|
||||
// name, set the site to dev mode. You should add a test for your
|
||||
// development servers here also.
|
||||
if(strpos(Director::baseURL(), "localhost") !== false ||
|
||||
strpos(Director::baseURL(), "127.0.0.1") !== false ||
|
||||
strpos(Director::baseURL(), "dev.") !== false) {
|
||||
Director::set_environment_type("dev");
|
||||
}
|
||||
// By default, sites running on localhost or hosts
|
||||
// beginning with 'dev' are set to dev mode. For
|
||||
// a description of what dev mode does, see
|
||||
// http://doc.silverstripe.com/doku.php?id=devmode
|
||||
// You can set your site to dev mode by uncommenting
|
||||
// the line below:
|
||||
|
||||
//Director::set_environment_type('dev');
|
||||
|
||||
?>
|
||||
PHP
|
||||
|
Loading…
Reference in New Issue
Block a user