chore(infra): remove DO, so much for that plan
authorxangelo <me@xangelo.ca>
Wed, 4 Dec 2024 21:38:32 +0000 (16:38 -0500)
committerxangelo <me@xangelo.ca>
Wed, 4 Dec 2024 21:38:32 +0000 (16:38 -0500)
.github/workflows/build.yml
knexfile.ts
src/server/lib/db.ts

index a4e92d97eaf14b10614b73740e0fb5ee25666562..40d8408ca7fc78733dcbb978e3878e9d1eb47df3 100644 (file)
@@ -23,10 +23,10 @@ jobs:
       run: npm ci
       
     - name: Build
-      run: npm run build:prod
+      run: npm run build
     
     - name: Upload build artifacts
       uses: actions/upload-artifact@v3
       with:
         name: dist
-        path: dist/
+        path: .
index 751c83bc67c32e36275d1cb19861099389001df8..e859fa3e052ac00969d34a600ac3b925eb908caf 100644 (file)
@@ -12,10 +12,7 @@ const config: { [key: string]: Knex.Config } = {
   development: {
     client: "pg",
     connection: {
-      connectionString: connectionUrl,
-      ssl: {
-        ca: readFileSync(path.join(__dirname, 'ca.crt'))
-      }
+      connectionString: connectionUrl
     },
     pool: {
       min: 2,
@@ -29,10 +26,7 @@ const config: { [key: string]: Knex.Config } = {
   production: {
     client: "pg",
     connection: {
-      connectionString: connectionUrl,
-      ssl: {
-        ca: readFileSync(path.join(__dirname, 'ca.crt'))
-      }
+      connectionString: connectionUrl
     },
     pool: {
       min: 2,
index 7a0b7dcc328afbd68620bf8c6f21a198421e09f1..a9d45bc5f280f140c8c570ec4d303b900319be5e 100644 (file)
@@ -7,14 +7,9 @@ dotenv();
 
 const connectionUrl = process.env.DATABASE_URL;
 
-writeFileSync(path.join(__dirname, 'ca.crt'), process.env.CA_CERT as string);
-
 export const db = knex({
   client: 'pg',
   connection: {
-    connectionString: connectionUrl,
-    ssl: {
-      ca: readFileSync(path.join(__dirname, 'ca.crt'))
-    }
+    connectionString: connectionUrl
   }
-});
+});
\ No newline at end of file