diff --git a/svelte-app/src/lib/export.ts b/svelte-app/src/lib/export.ts index 2fbddaf..8f133a5 100644 --- a/svelte-app/src/lib/export.ts +++ b/svelte-app/src/lib/export.ts @@ -591,7 +591,7 @@ export async function deployToIgnition() { }); const result = await resp.json(); if (result.ok) { - alert(`Deployed to Ignition!\n${result.path}`); + alert(`Deployed to Ignition!\n${result.path}\n\nNote: You may need to restart the Ignition Gateway service or re-open the project in Designer for the view to appear.`); } else { alert(`Deploy failed: ${result.error}`); } diff --git a/svelte-app/vite.config.ts b/svelte-app/vite.config.ts index c78fecb..f53e067 100644 --- a/svelte-app/vite.config.ts +++ b/svelte-app/vite.config.ts @@ -269,6 +269,12 @@ export default defineConfig({ fs.mkdirSync(viewDir, { recursive: true }); fs.writeFileSync(path.join(viewDir, 'view.json'), viewJson); fs.writeFileSync(path.join(viewDir, 'resource.json'), resourceJson); + // Touch project.json to signal modification + const projectJson = path.join(ignitionBase, projectName, 'project.json'); + if (fs.existsSync(projectJson)) { + const now = new Date(); + fs.utimesSync(projectJson, now, now); + } res.setHeader('Content-Type', 'application/json'); res.end(JSON.stringify({ ok: true, path: viewDir })); } catch (err: any) {