Add config.php at root; include configuration overhaul and then fixes to the installer #156
This commit is contained in:
60
resources/stubs/installer/config.stub
Normal file
60
resources/stubs/installer/config.stub
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* This file overrides any of the config files in the /config directory.
|
||||
* The root key is the name of the file, and then the structure within.
|
||||
* The config is merged, so only include what you want to override
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
# overrides app.php
|
||||
'app' => [
|
||||
'name' => '$SITE_NAME$',
|
||||
'url' => '$SITE_URL$',
|
||||
|
||||
# Don't forget to change these when live
|
||||
'env' => 'dev',
|
||||
'debug' => true,
|
||||
],
|
||||
|
||||
# overrides phpvms.php
|
||||
'phpvms' => [
|
||||
'skin' => 'default',
|
||||
'vacentral_api_key' => '',
|
||||
],
|
||||
|
||||
# overrides cache.php
|
||||
'cache' => [
|
||||
'default' => '$CACHE_DRIVER$',
|
||||
'prefix' => 'phpvms_',
|
||||
],
|
||||
|
||||
# overrides database.php
|
||||
'database' => [
|
||||
'default' => '$DB_CONN$',
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
'host' => '$DB_HOST$',
|
||||
'port' => $DB_PORT$,
|
||||
'database' => '$DB_NAME$',
|
||||
'username' => '$DB_USER$',
|
||||
'password' => '$DB_PASS$',
|
||||
'prefix' => '$DB_PREFIX$',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
# overrides mail.php
|
||||
'mail' => [
|
||||
'driver' => 'smtp',
|
||||
'host' => '',
|
||||
'port' => 587,
|
||||
'from' => [
|
||||
'name' => '',
|
||||
'address' => '',
|
||||
],
|
||||
'username' => '',
|
||||
'password' => '',
|
||||
],
|
||||
|
||||
];
|
||||
3
resources/stubs/installer/env.stub
Normal file
3
resources/stubs/installer/env.stub
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php exit(); ?>
|
||||
|
||||
APP_KEY=base64:$APP_KEY$
|
||||
Reference in New Issue
Block a user