Skip to content

Commit 8cc2b7b

Browse files
committed
add documentation about database [skip ci]
1 parent 107a660 commit 8cc2b7b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

website/docs/2. Installation/2.3 Advanced.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ Before you deploy the Blink server, you need a Postgres and a Redis database. By
44

55
Please see the `docker-compose.yml` of the repo to see a working setup running on docker-compose.
66

7+
:::warning
8+
MySQL is not currently supported as Blink relies on some PostgreSQL-specific features/isn't tested on MySQL. We hope to add MySQL support in the future, but for now, a recent-ish version of PostgreSQL is required.
9+
:::
10+
11+
### Database Migrations
12+
13+
For both the docker and bare metal installations, Blink will automatically run database migrations (see `AUTO_MIGRATE=1` in the `.env` for why it's doing so), so you don't need a "release" step or anything - just spin it up and you're good to go!
14+
15+
If you'd like to manually run migrations and prevent Blink from running it before actually spinning up the server, please set the environment variable `AUTO_MIGRATE=0`.
16+
717
## Deploying to Your Own Server
818

919
A few commonalities to keep in mind no matter how you're running the Blink server (most of these are standard 12-factor app practices):
@@ -59,12 +69,6 @@ npm i -P && \
5969

6070
Note that we only support node LTS versions, so if you're expecting difficulties, try using the LTS build.
6171

62-
## Database Migrations
63-
64-
For both the docker and bare metal installations, Blink will automatically run database migrations (see `AUTO_MIGRATE=1` in the `.env` for why it's doing so), so you don't need a "release" step or anything - just spin it up and you're good to go!
65-
66-
If you'd like to manually run migrations and prevent Blink from running it before actually spinning up the server, please set the environment variable `AUTO_MIGRATE=0`.
67-
6872
## Advanced Analytics
6973

7074
See [the Architecture page](/Introduction/1.3%20Architecture) for advanced edge/server access log-based analytics!

0 commit comments

Comments
 (0)