Created
December 13, 2015 20:51
-
-
Save sheadawson/fac4331fec83f08a19c2 to your computer and use it in GitHub Desktop.
SS Environment vhost setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// place this file above web root | |
if(!defined('SS_ENVIRONMENT_TYPE')) define('SS_ENVIRONMENT_TYPE', 'dev'); | |
if(!defined('SS_DEFAULT_ADMIN_USERNAME')) define('SS_DEFAULT_ADMIN_USERNAME', 'admin'); | |
if(!defined('SS_DEFAULT_ADMIN_PASSWORD')) define('SS_DEFAULT_ADMIN_PASSWORD', 'admin'); | |
if(!defined('SS_DATABASE_CLASS')) define('SS_DATABASE_CLASS', 'MySQLDatabase'); | |
if(!defined('SS_DATABASE_SERVER')) define('SS_DATABASE_SERVER', '127.0.0.1'); | |
if(!defined('SS_DATABASE_USERNAME')) define('SS_DATABASE_USERNAME', 'root'); | |
if(!defined('SS_DATABASE_PASSWORD')) define('SS_DATABASE_PASSWORD', 'root'); | |
if(!defined('SS_ERROR_LOG')) define('SS_ERROR_LOG', 'silverstripe.log'); | |
if(!defined('SS_SEND_ALL_EMAILS_TO')) define('SS_SEND_ALL_EMAILS_TO', '[email protected]'); | |
// if using mandrill | |
//if(!defined('MANDRILL_API_KEY')) define('MANDRILL_API_KEY','xxx'); | |
// if database names should be set automatically based on folder name | |
//if(!defined('SS_DATABASE_CHOOSE_NAME')) define('SS_DATABASE_CHOOSE_NAME', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// place this file in your project root folder | |
// any project specific config goes here | |
define('SS_ENVIRONMENT_TYPE', 'dev'); | |
define('SS_DATABASE_NAME', 'xxx'); | |
// set file to url mapping dynamically (required if using ss command line tools) | |
global $_FILE_TO_URL_MAPPING; | |
$_FILE_TO_URL_MAPPING[__DIR__] = 'http://' . basename(__DIR__) . '.dev'; | |
// include global/default environment file | |
include('/path/to/_ss_environment.default.php'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment