Skip to content

Commit fb4a0a7

Browse files
authored
Merge pull request #996 from Shiti/master
feat: database setup instructions to oss deployment docs
1 parent f066fe4 commit fb4a0a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/logto-oss/deployment-and-configuration.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ You are all set. Open the browser and visit `https://admin.your-domain.com`, you
9797

9898
For production, you may use Docker to containerize Logto. You can find the Dockerfile in the root directory of the project. If you want to run multiple instances of Logto, for instance, deploy Logto in a Kubernetes cluster, There are some additional steps you need to take.
9999

100+
### Database setup \{#database-setup}
101+
102+
Prepare a Postgres database for Logto. It is strongly recommended to use Logto CLI to initialize the database.
103+
104+
```bash
105+
npm run cli db seed -- --swe
106+
```
107+
108+
Refer to the [Logto CLI](/logto-oss/using-cli) for more details.
109+
100110
### Shared connectors folder \{#shared-connectors-folder}
101111

102112
By default, Logto will create a `connectors` folder in the root directory of the `core` folder. We recommend sharing the folder between multiple instances of Logto, you need to mount the `packages/core/connectors` folder to the container and run `npm run cli connector add -- --official` to deploy the connectors.

0 commit comments

Comments
 (0)