forked from geolba/tethys.backend
Arno Kaimbacher
4714dfdd94
- npm normal updates - add all xslt and style asstes in extra folder public/assets2 - linting corrections - delete local .env.test from git tracking: git rm --cached .env.test - add .env.test into .gitignore file - add edit functionality for editing by submitter - npm updates -added xslt3 packeage for builfing sef files - added Language.ts class vor language table - added version to datasetxml2oai-pmh.xslt
56 lines
1.6 KiB
TypeScript
56 lines
1.6 KiB
TypeScript
/**
|
|
* Config source: https://git.io/JesV9
|
|
*
|
|
* Feel free to let us know via PR, if you find something broken in this config
|
|
* file.
|
|
*/
|
|
|
|
import Env from '@ioc:Adonis/Core/Env';
|
|
import { DatabaseConfig } from '@ioc:Adonis/Lucid/Database';
|
|
|
|
const databaseConfig: DatabaseConfig = {
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Connection
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The primary connection for making database queries across the application
|
|
| You can use any key from the `connections` object defined in this same
|
|
| file.
|
|
|
|
|
*/
|
|
connection: Env.get('DB_CONNECTION'),
|
|
|
|
connections: {
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| PostgreSQL config
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configuration for PostgreSQL database. Make sure to install the driver
|
|
| from npm when using this connection
|
|
|
|
|
| npm i pg
|
|
|
|
|
*/
|
|
pg: {
|
|
client: 'pg',
|
|
connection: {
|
|
host: Env.get('PG_HOST'),
|
|
port: Env.get('PG_PORT'),
|
|
user: Env.get('PG_USER'),
|
|
password: Env.get('PG_PASSWORD', ''),
|
|
database: Env.get('PG_DB_NAME'),
|
|
},
|
|
searchPath: ['gba', 'public'],
|
|
migrations: {
|
|
naturalSort: true,
|
|
},
|
|
healthCheck: false,
|
|
debug: false,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default databaseConfig;
|