diff options
author | crupest <crupest@outlook.com> | 2020-01-05 23:32:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-05 23:32:53 +0800 |
commit | 7d4bf81b6536123a2904d522148edf039a733f37 (patch) | |
tree | 5afae975196ba9fac7034d62e305af82003f4691 /README.md | |
parent | b629695c7c28fb89b91f2f7e09f7eea632c21aba (diff) | |
download | timeline-7d4bf81b6536123a2904d522148edf039a733f37.tar.gz timeline-7d4bf81b6536123a2904d522148edf039a733f37.tar.bz2 timeline-7d4bf81b6536123a2904d522148edf039a733f37.zip |
Update README.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -10,4 +10,22 @@ The final product is hosting on my [Tencent Cloud](https://cloud.tencent.com/) C Feel free to comment by opening an issue. -`tools/open-code` file is a simple *bash* script that fixes the problem that *OminiSharp* in C# extension on vscode can't work using *dotnet* in Arch official package repository on Arch Linux. See [this page](https://bugs.archlinux.org/task/60903). +`tools/open-code` file is a simple _bash_ script that fixes the problem that _OminiSharp_ in C# extension on vscode can't work using _dotnet_ in Arch official package repository on Arch Linux. See [this page](https://bugs.archlinux.org/task/60903). + +## about database configuration + +You can configure two database, one for development, other for production, at the same time in the configuration file (better in user secret file): + +```json +{ + "DatabaseConfig": { + "UseDevelopment": true, + "ConnectionString": "The secret production database string. (MySql)", + "DevelopmentConnectionString": "The private development database string. (Sqlite)" + } +} +``` + +Set `UseDevelopment` to `true` to use `DevelopmentConnectionString` as sqlite connection string. Set `UseDevelopment` to `false` to use `ConnectionString` as mysql connection string. Usually you set it to `true` in development mode and `false` in production mode. But you may have to use production database to do migration in development so you may also set it to `false` in development to do that. The migrations for two database are different because they use different providers and remember to use it to switch to right database when do migration. + +If you have better solution to deal with database, please don't hesitate to tell me. 😛 |