Merge pull request #301 from lukassup/patch-2

fix issues preventing Sails app from starting
This commit is contained in:
Mano Marks 2017-06-20 10:59:35 -07:00 коммит произвёл GitHub
Родитель 8f45c263b5 dedf4bed87
Коммит f1e6941c8f
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -6,21 +6,21 @@ Configuration (credentials, database connection string, ...) should be stored in
In _config/connections.js_, we define the _mongo_ connection and use MONGO_URL environment variable to pass the mongo connection string.
```
```node
module.exports.connections = {
mongo: {
adapter: 'sails-mongo',
url: 'process.env.MONGO_URL'
adapter: 'sails-mongo',
url: process.env.MONGO_URL
}
};
```
In _config/model.js_, we make sure the _mongo_ connection defined above is the one used.
```
```node
module.exports.models = {
connection: mongo,
migrate: 'safe'
connection: 'mongo',
migrate: 'safe'
};
```