Merge pull request #219 from CodeYourDay/patch-1

Update
This commit is contained in:
Tanner 2017-09-19 17:11:43 -04:00 committed by GitHub
commit 56c54b239a
1 changed files with 5 additions and 5 deletions

View File

@ -76,18 +76,18 @@ let mongoUrl = drop.config["keys", "mongo", "url"]?.string ?? "default"
## Advanced Configurations ## Advanced Configurations
Having the default `servers.json` is great, but what about more complex scenarios. For example, what if we want a different host in production and in development? These complex scenarios can be achieved by adding additional folders to our `Config/` directory. Here's an example of a folder structure that's setup for production and development environments. Having the default `server.json` is great, but what about more complex scenarios. For example, what if we want a different host in production and in development? These complex scenarios can be achieved by adding additional folders to our `Config/` directory. Here's an example of a folder structure that's setup for production and development environments.
```bash ```bash
WorkingDirectory/ WorkingDirectory/
├── Config/ ├── Config/
│ ├── servers.json │ ├── server.json
│ ├── production/ │ ├── production/
│ │ └── servers.json │ │ └── server.json
│ ├── development/ │ ├── development/
│ │ └── servers.json │ │ └── server.json
│ └── secrets/ │ └── secrets/
│ └── servers.json │ └── server.json
``` ```
> You can specify the environment through the command line by using --env=. Custom environments are also available, a few are provided by default: production, development, and testing. > You can specify the environment through the command line by using --env=. Custom environments are also available, a few are provided by default: production, development, and testing.