1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/server/config/datastores.js

53 lines
1.6 KiB
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
/**
* Datastores
* (sails.config.datastores)
*
* A set of datastore configurations which tell Sails where to fetch or save
* data when you execute built-in model methods like `.find()` and `.create()`.
*
* > This file is mainly useful for configuring your development database,
* > as well as any additional one-off databases used by individual models.
* > Ready to go live? Head towards `config/env/production.js`.
*
* For more information on configuring datastores, check out:
* https://sailsjs.com/config/datastores
*/
module.exports.datastores = {
/**
*
* Your app's default datastore.
*
* Sails apps read and write to local disk by default, using a built-in
* database adapter called `sails-disk`. This feature is purely for
* convenience during development; since `sails-disk` is not designed for
* use in a production environment.
*
* To use a different db _in development_, follow the directions below.
* Otherwise, just leave the default datastore as-is, with no `adapter`.
*
* (For production configuration, see `config/env/production.js`.)
*
*/
2019-08-31 04:07:25 +05:00
default: {
/**
*
* Want to use a different database during development?
*
* 1. Choose an adapter:
* https://sailsjs.com/plugins/databases
*
* 2. Install it as a dependency of your Sails app.
* (For example: npm install sails-mysql --save)
*
* 3. Then pass it in, along with a connection URL.
* (See https://sailsjs.com/config/datastores for help.)
*
*/
2019-08-31 04:07:25 +05:00
2024-04-23 15:45:47 +02:00
adapter: 'sails-postgresql',
2019-08-31 04:07:25 +05:00
url: process.env.DATABASE_URL,
},
};