Configuration
$config['trek'] = [
'environments' => [
'production' => [
'hostname' => 'prod-db.somedomain.com',
'database' => '',
'username' => '',
'password' => '',
],
]
];Default configuration
$config['trek'] = [
/*
Example databases format. The environment names can be anything you want, but they should be in progressive order,
e.g. your production environment should probably be last.
'environments' => [
'staging' => [
'hostname' => 'stag-db.somedomain.com',
'database' => '',
'username' => '',
'password' => '',
],
'production' => [
'hostname' => 'prod-db.somedomain.com',
'database' => '',
'username' => '',
'password' => '',
],
]
*/
'environments' => [],
/*
The default storage locations for migrations is in your site's user/cache/migrations folder, however, it is
recommended to use an external storage service such as Amazon S3 to ensure the migration files are not accidentally
deleted. Alternatively, you can create a folder outside of your user/cache folder to circumvent EE's cache clearing,
which will delete the contents in the user/cache folder.
*/
'storage' => [
'local' => [
'path' => PATH_CACHE.'migrations',
],
/*
BoldMinded will not assist in creating or troubleshooting S3 access. You will need to configure your account,
bucket, user, group, and IAM roles and permissions. If you do not configure permissions correctly, Trek will
throw an exception error... this is how you will know something is incorrect with the values below, or with
your user, group, or IAM settings in AWS.
's3' => [
'key' => '',
'secret' => '',
'bucket' => '',
'region' => 'us-east-2', aka, "US East (Ohio)" https://docs.aws.amazon.com/general/latest/gr/rande.html
'path' => '',
]
*/
],
// A slower backup routine, but it progressively updates the status bar for more accurate status of the backup.
// Setting this to false will perform a faster backup in a single http request, but the progress bar will not display.
'progressiveBackup' => true,
// Always perform a backup before releasing? This will backup the remote database you are about to release to.
'requireBackup' => true,
// How many migrations should be considered too many, and notify the user they should consider releasing?
'threshold' => 50,
// Do we push migrations to an external location, or pull them?
'method' => 'push', // push|pull
/*
CAUTION: the following should only be changed if you understand the consequences, and if changed BoldMinded
may choose to void support requests pertaining to a non-default 'migrate' config array.
*/
'migrate' => [
'models' => [
'Category' => true,
'CategoryField' => true,
'CategoryGroup' => true,
'Channel' => true,
'ChannelField' => true,
'ChannelEntry' => true,
'ChannelFormSettings' => true,
'ChannelLayout' => true,
'GlobalVariable' => true,
'Site' => true,
'Snippet' => true,
'SpecialtyTemplate' => true,
'Status' => true,
'Template' => true,
'TemplateGroup' => true,
'TemplateRoute' => true,
'Member' => true,
],
'postActions' => [
'cp\/(addons\/settings)\/(\S+)' => true,
'cp\/(addons)' => true,
'cp\/(settings)\/(\S+)' => true,
],
'getActions' => [
'cp\/(addons\/install)\/(\S+)' => true,
],
],
];Storage
Last updated