From 27625bc31a40b13fc9cc1e205e7ae1244faa2767 Mon Sep 17 00:00:00 2001 From: Raj Nandan Sharma Date: Thu, 5 Dec 2024 08:47:32 +0530 Subject: [PATCH] docs: fix docs for npm deploy --- .github/workflows/publishImage.yml | 4 ++-- docs/deployment.md | 5 +++-- src/lib/components/monitor.svelte | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publishImage.yml b/.github/workflows/publishImage.yml index cc95914b..246d5304 100644 --- a/.github/workflows/publishImage.yml +++ b/.github/workflows/publishImage.yml @@ -7,8 +7,8 @@ on: tags: - "*.*.*" paths-ignore: - - docs.md - - README.md + - '**/*.md' + - 'docs/**' jobs: push_to_registry: name: Push Docker image to Docker Hub diff --git a/docs/deployment.md b/docs/deployment.md index 3ded4068..b25b792c 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -22,8 +22,8 @@ Make sure you have the following installed: ```shell npm i -npm run build #build the frontend -npm run configure #build the backend +npm run build +npm run configure npm run prod ``` @@ -60,6 +60,7 @@ mkdir database mkdir config curl -o config/site.yaml https://raw.githubusercontent.com/rajnandan1/kener/refs/heads/main/config/site.example.yaml curl -o config/monitors.yaml https://raw.githubusercontent.com/rajnandan1/kener/refs/heads/main/config/monitors.example.yaml +curl -o config/server.yaml https://raw.githubusercontent.com/rajnandan1/kener/refs/heads/main/config/server.example.yaml docker run \ -v $(pwd)/database:/app/database \ -v $(pwd)/config:/app/config \ diff --git a/src/lib/components/monitor.svelte b/src/lib/components/monitor.svelte index 7f6f0988..df65dd9a 100644 --- a/src/lib/components/monitor.svelte +++ b/src/lib/components/monitor.svelte @@ -144,7 +144,7 @@ loadingDayData = true; setTimeout(() => { getToday(bar.timestamp); - }, 1000); + }, 750); }