mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
docs: add a tip to create db for the first time (#550)
* add a tip to create db schema ahead of time * add a tip to create db schema ahead of time * docs: add a tip to create db schema ahead of time
This commit is contained in:
parent
3a64e4dcd8
commit
e7018e3de4
@ -84,6 +84,12 @@ username:password@tcp(database_ip:database_port)/
|
||||
|
||||
Then create an empty schema (database) named `casdoor` in your relational database. After the program runs for the first time, it will automatically create tables in this schema.
|
||||
|
||||
You can also edit `main.go`, modify `false` to `true`. It will automatically create the schema (database) named `casdoor` in this database.
|
||||
|
||||
```bash
|
||||
createDatabase := flag.Bool("createDatabase", false, "true if you need casdoor to create database")
|
||||
```
|
||||
|
||||
#### Run
|
||||
|
||||
Casdoor provides two run modes, the difference is binary size and user prompt.
|
||||
|
Loading…
x
Reference in New Issue
Block a user