MVP, working sentry scraper
This commit is contained in:
@ -1,13 +1,18 @@
|
||||
import app from '@adonisjs/core/services/app'
|
||||
import { defineConfig } from '@adonisjs/lucid'
|
||||
import env from '#start/env'
|
||||
|
||||
const dbConfig = defineConfig({
|
||||
connection: 'sqlite',
|
||||
connection: 'postgres',
|
||||
connections: {
|
||||
sqlite: {
|
||||
client: 'better-sqlite3',
|
||||
postgres: {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
filename: app.tmpPath('db.sqlite3')
|
||||
host: env.get('PG_HOST'),
|
||||
port: env.get('PG_PORT', 5432),
|
||||
user: env.get('PG_USER', 'postgres'),
|
||||
password: env.get('PG_PASSWORD', 'postgres'),
|
||||
database: env.get('PG_DB_NAME', 'postgres'),
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
migrations: {
|
||||
@ -18,4 +23,4 @@ const dbConfig = defineConfig({
|
||||
},
|
||||
})
|
||||
|
||||
export default dbConfig
|
||||
export default dbConfig
|
||||
|
Reference in New Issue
Block a user