mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Move geo database to public folder.
This commit is contained in:
parent
60ea492a48
commit
c05be856f3
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,8 +16,8 @@
|
|||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
/public/umami.js
|
/public/umami.js
|
||||||
|
/public/geo
|
||||||
/lang-compiled
|
/lang-compiled
|
||||||
/geo
|
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
@ -14,7 +14,7 @@ if (process.env.MAXMIND_LICENSE_KEY) {
|
|||||||
`?edition_id=GeoLite2-Country&license_key=${process.env.MAXMIND_LICENSE_KEY}&suffix=tar.gz`;
|
`?edition_id=GeoLite2-Country&license_key=${process.env.MAXMIND_LICENSE_KEY}&suffix=tar.gz`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const dest = path.resolve(__dirname, '../geo');
|
const dest = path.resolve(__dirname, '../public/geo');
|
||||||
|
|
||||||
if (!fs.existsSync(dest)) {
|
if (!fs.existsSync(dest)) {
|
||||||
fs.mkdirSync(dest);
|
fs.mkdirSync(dest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user