From 41c9cda266074243300ee4537a38bd9552b745e3 Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 5 Dec 2024 00:12:08 -0500 Subject: [PATCH] chore(infra): trying supabase w/ do app --- .github/workflows/build.yml | 8 +------- knexfile.ts | 1 - package.json | 1 + src/server/lib/db.ts | 4 +--- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40d8408..5d35b88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,4 @@ jobs: run: npm ci - name: Build - run: npm run build - - - name: Upload build artifacts - uses: actions/upload-artifact@v3 - with: - name: dist - path: . + run: npm run build \ No newline at end of file diff --git a/knexfile.ts b/knexfile.ts index e859fa3..3b52466 100644 --- a/knexfile.ts +++ b/knexfile.ts @@ -6,7 +6,6 @@ import path from 'path'; dotenv(); const connectionUrl = process.env.DATABASE_URL; -writeFileSync(path.join(__dirname, 'ca.cert'), process.env.CA_CERT as string); const config: { [key: string]: Knex.Config } = { development: { diff --git a/package.json b/package.json index e692d29..2d669a0 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "content:refresh:monsters": "npm run ts-node -- ./seeds/monsters.ts", "content:refresh:items": "npm run ts-node -- ./seeds/shop_items.ts", "content:refresh:drops": "npm run ts-node -- ./seeds/drop-tables.ts", + "content:refresh:dungeons": "npm run ts-node -- ./seeds/dungeons.ts", "release": "npx standard-version && npm run copy-changelog", "copy-changelog": "cp ./CHANGELOG.md ~/repos/xangelo.ca/static/", "release:minor": "npx standard-version --release-as minor", diff --git a/src/server/lib/db.ts b/src/server/lib/db.ts index a9d45bc..a9876b0 100644 --- a/src/server/lib/db.ts +++ b/src/server/lib/db.ts @@ -5,11 +5,9 @@ import path from 'path'; dotenv(); -const connectionUrl = process.env.DATABASE_URL; - export const db = knex({ client: 'pg', connection: { - connectionString: connectionUrl + connectionString: process.env.DATABASE_URL } }); \ No newline at end of file -- 2.25.1