← back to Norma
ig-activity: best-effort scp to live marketing.dw after each post (keeps panel fresh)
2d8bec8ec393b713abe1f9459b4ecf3042af497a · 2026-08-11 08:33:33 -0700 · Steve Abrams
Files touched
M agents/instagram-agent/gen-ig-activity.js
Diff
commit 2d8bec8ec393b713abe1f9459b4ecf3042af497a
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 11 08:33:33 2026 -0700
ig-activity: best-effort scp to live marketing.dw after each post (keeps panel fresh)
---
agents/instagram-agent/gen-ig-activity.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/agents/instagram-agent/gen-ig-activity.js b/agents/instagram-agent/gen-ig-activity.js
index f1936a5..8935e99 100644
--- a/agents/instagram-agent/gen-ig-activity.js
+++ b/agents/instagram-agent/gen-ig-activity.js
@@ -45,3 +45,13 @@ for (const t of targets) {
catch (e) { /* MCC may not exist on every host */ }
}
console.log(`ig-activity: ${out.total_posts} posts across ${out.accounts_touched} accounts`);
+
+// Best-effort push the fresh feed to the LIVE marketing.dw (Kamatera) so the panel
+// stays current after each post. Detached + non-blocking; failures are ignored.
+try {
+ const cp = require('child_process');
+ const local = path.join(HERE, 'public', 'ig-activity.json');
+ const remote = 'root@45.61.58.125:/root/DW-Agents/marketing-command-center/public/ig-activity.json';
+ const c = cp.spawn('scp', ['-o', 'ConnectTimeout=8', '-o', 'BatchMode=yes', local, remote], { detached: true, stdio: 'ignore' });
+ c.on('error', () => {}); c.unref();
+} catch (_) { /* marketing.dw sync is best-effort */ }
← 37895ae IG captions: strip price + raw vendor (was leaking $4.25 mem
·
back to Norma
·
auto-data-snapshot: 2026-08-11T08:39:13 (1 data files) — age 8fe7c41 →