commit
a1704d079b
|
@ -4,6 +4,7 @@ node_modules
|
|||
stats.json
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
files
|
||||
|
||||
# Cruft
|
||||
.DS_Store
|
||||
|
|
|
@ -15,11 +15,19 @@ module.exports = {
|
|||
* @returns {void}
|
||||
*/
|
||||
exportAll: async (ctx) => {
|
||||
await strapi.plugins['config-sync'].services.main.exportAllConfig();
|
||||
|
||||
if (strapi.config.get('autoReload')) {
|
||||
ctx.send({
|
||||
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
|
||||
});
|
||||
}
|
||||
|
||||
await strapi.plugins['config-sync'].services.main.exportAllConfig();
|
||||
|
||||
if (!strapi.config.get('autoReload')) {
|
||||
ctx.send({
|
||||
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "strapi-plugin-config-sync",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. ",
|
||||
"strapi": {
|
||||
"name": "config-sync",
|
||||
|
|
Loading…
Reference in New Issue