Database build script.

This commit is contained in:
Mike Cao 2020-08-19 20:51:35 -07:00
parent b905824d50
commit c3da37c0b0
5 changed files with 57 additions and 26 deletions

View file

@ -13,21 +13,11 @@ A detailed getting started guide can be found at [https://umami.is/docs/](https:
- A server with Node.js 10.13 or newer
- A database (MySQL or Postgresql)
### Get the source code
### Get the source code and install packages
```
git clone https://github.com/mikecao/umami.git
```
### Go into the repo folder
```
cd umami
```
### Install packages
```
npm install
```
@ -70,18 +60,8 @@ The `HASH_SALT` is used to generate unique values for your installation.
### Generate database client
Depending on your database type, run the appropriate script.
For MySQL:
```
npm run build-mysql-client
```
For Postgresql:
```
npm run build-postgresql-client
npm run build-db-client
```
### Create a production build