From 1acecba0c89c3b4ac2c019d6845e528ea25f2a89 Mon Sep 17 00:00:00 2001 From: redglow Date: Sun, 21 Jun 2026 17:01:36 +0200 Subject: [PATCH] chore: base create build script --- README.md | 4 +++- create-build.sh | 8 ++++++++ owof-announcements | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 create-build.sh create mode 160000 owof-announcements diff --git a/README.md b/README.md index 45b2324..e63e9a7 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,6 @@ Run: ``` NODE_ENV=production HTTP_PORT=1234 node ./src/server/main.ts -``` \ No newline at end of file +``` + +Copy to server: diff --git a/create-build.sh b/create-build.sh new file mode 100755 index 0000000..44de575 --- /dev/null +++ b/create-build.sh @@ -0,0 +1,8 @@ +set -e +git clone https://git.foxthesystem.space/redglow/owof-announcements.git +cd owof-announcements +yarn install +./node_modules/.bin/vite build +rm -rf node_modules +yarn install --production=true +sqlite3 data.db < ./src/server/db/schema.sql diff --git a/owof-announcements b/owof-announcements new file mode 160000 index 0000000..c575dcd --- /dev/null +++ b/owof-announcements @@ -0,0 +1 @@ +Subproject commit c575dcd0ce1f7996a5ebba868c66b436ef2f0d19