-
Notifications
You must be signed in to change notification settings - Fork 4
Builder
Matej Simek edited this page Apr 5, 2017
·
1 revision
- lives in: https://github.com/manGoweb/MangoPress/blob/master/theme/admin/builder.php
- adds settings page, but only if function
mango_deploy_getDataset
exists - triggers deploy on a builder instance
- shows status
- provides
mango_expandPaths
fnc to simplify data structure (by__
delimiter) - requires https://github.com/manGoweb/builder running instance
- Implement a payload contruction in the
theme/functions.php
file:
function mango_deploy_getDataset() {
return [
'templates' => [
'src/templates/*.jade',
],
'data' => [
'site' => mango_expandPaths(get_option('site_settings')),
],
];
}
- Fill in configuration paremeters:builder options
parameters:
builder:
url:
remote:
revision:
mango-cli:
aws:
bucket:
key:
secret:
subfolder:
- Test it and profit