Change DATABASE_ADAPTER to DATABASE_SCHEME

This commit is contained in:
Peter West
2016-03-08 09:03:20 +00:00
parent ab7cc8c1a1
commit 90791f536a
4 changed files with 11 additions and 11 deletions

View File

@@ -133,17 +133,17 @@ dokku mysql:destroy lolipop
## Changing database adapter
It's possible to change the protocol for DATABASE_URL by setting
the environment variable DATABASE_ADAPTER on the app:
the environment variable DATABASE_SCHEME on the app:
```
dokku config:set playground DATABASE_ADAPTER=mysql2
dokku config:set playground DATABASE_SCHEME=mysql2
dokku mysql:link lolipop playground
```
Will cause DATABASE_URL to be set as
mysql2://mysql:SOME_PASSWORD@dokku-mysql-lolipop:3306/lolipop
CAUTION: Changing DATABASE_ADAPTER after linking will cause dokku to believe
CAUTION: Changing DATABASE_SCHEME after linking will cause dokku to believe
the service is not linked when attempting to use `dokku mysql:unlink` or
`dokku mysql:promote`.
You should be able to fix this by
@@ -152,7 +152,7 @@ You should be able to fix this by
OR
- Set DATABASE_ADAPTER back to its original setting
- Set DATABASE_SCHEME back to its original setting
- Unlink the service
- Change DATABASE_ADAPTER to the desired setting
- Change DATABASE_SCHEME to the desired setting
- Relink the service