Skip to content

Commit a1704d0

Browse files
authored
Merge pull request #3 from boazpoolman/develop
Develop
2 parents 401a58d + 76d1142 commit a1704d0

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
stats.json
55
package-lock.json
66
yarn.lock
7+
files
78

89
# Cruft
910
.DS_Store

controllers/config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ module.exports = {
1515
* @returns {void}
1616
*/
1717
exportAll: async (ctx) => {
18+
if (strapi.config.get('autoReload')) {
19+
ctx.send({
20+
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
21+
});
22+
}
23+
1824
await strapi.plugins['config-sync'].services.main.exportAllConfig();
1925

20-
ctx.send({
21-
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
22-
});
26+
if (!strapi.config.get('autoReload')) {
27+
ctx.send({
28+
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
29+
});
30+
}
2331
},
2432

2533
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-config-sync",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. ",
55
"strapi": {
66
"name": "config-sync",

0 commit comments

Comments
 (0)