mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 15:19:44 +02:00
Initial commit
This commit is contained in:
commit
5ffef61fe7
613 changed files with 91659 additions and 0 deletions
52
server/config/datastores.js
Normal file
52
server/config/datastores.js
Normal file
|
@ -0,0 +1,52 @@
|
|||
/**
|
||||
* 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`.) *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
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.) *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
adapter: 'sails-postgresql',
|
||||
url: process.env.DATABASE_URL,
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue