mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00: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']}",
|
"database" => "{$config['mysql']['database']}",
|
||||||
);
|
);
|
||||||
|
|
||||||
// If we're running on local host, or a server with 'dev.' in its
|
// By default, sites running on localhost or hosts
|
||||||
// name, set the site to dev mode. You should add a test for your
|
// beginning with 'dev' are set to dev mode. For
|
||||||
// development servers here also.
|
// a description of what dev mode does, see
|
||||||
if(strpos(Director::baseURL(), "localhost") !== false ||
|
// http://doc.silverstripe.com/doku.php?id=devmode
|
||||||
strpos(Director::baseURL(), "127.0.0.1") !== false ||
|
// You can set your site to dev mode by uncommenting
|
||||||
strpos(Director::baseURL(), "dev.") !== false) {
|
// the line below:
|
||||||
Director::set_environment_type("dev");
|
|
||||||
}
|
//Director::set_environment_type('dev');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
PHP
|
PHP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user