mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
New build scripts.
This commit is contained in:
parent
c0778afe90
commit
d9f3c385fb
@ -3,9 +3,7 @@ FROM node:12.18-alpine
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN npm install \
|
RUN npm install && npm run build
|
||||||
&& npm run build-postgresql-client \
|
|
||||||
&& npm run build
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
@ -58,13 +58,7 @@ mysql://username:mypassword@localhost:3306/mydb
|
|||||||
|
|
||||||
The `HASH_SALT` is used to generate unique values for your installation.
|
The `HASH_SALT` is used to generate unique values for your installation.
|
||||||
|
|
||||||
### Generate database client
|
### Build the application
|
||||||
|
|
||||||
```
|
|
||||||
npm run build-db-client
|
|
||||||
```
|
|
||||||
|
|
||||||
### Create a production build
|
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run build
|
npm run build
|
||||||
|
@ -68,7 +68,7 @@ export async function getCountry(req, ip) {
|
|||||||
|
|
||||||
lookup.close();
|
lookup.close();
|
||||||
|
|
||||||
return result?.country?.iso_code;
|
return result.country.iso_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getClientInfo(req, { screen }) {
|
export async function getClientInfo(req, { screen }) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "0.12.0",
|
"version": "0.13.0",
|
||||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user