Skip to content

Commit

Permalink
fix issues preventing Sails app from starting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukassup authored Jun 15, 2017
1 parent ef7e5a1 commit dedf4be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 12factor/03_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
```

Expand Down

0 comments on commit dedf4be

Please sign in to comment.