New build scripts.

This commit is contained in:
Mike Cao 2020-08-21 02:22:07 -07:00
parent c0778afe90
commit d9f3c385fb
4 changed files with 4 additions and 12 deletions

View File

@ -3,9 +3,7 @@ FROM node:12.18-alpine
COPY . /app
WORKDIR /app
RUN npm install \
&& npm run build-postgresql-client \
&& npm run build
RUN npm install && npm run build
EXPOSE 3000

View File

@ -58,13 +58,7 @@ mysql://username:mypassword@localhost:3306/mydb
The `HASH_SALT` is used to generate unique values for your installation.
### Generate database client
```
npm run build-db-client
```
### Create a production build
### Build the application
```
npm run build

View File

@ -68,7 +68,7 @@ export async function getCountry(req, ip) {
lookup.close();
return result?.country?.iso_code;
return result.country.iso_code;
}
export async function getClientInfo(req, { screen }) {

View File

@ -1,6 +1,6 @@
{
"name": "umami",
"version": "0.12.0",
"version": "0.13.0",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <mike@mikecao.com>",
"license": "MIT",