Move geo database to public folder.

This commit is contained in:
Mike Cao 2020-09-26 21:18:15 -07:00
parent 60ea492a48
commit c05be856f3
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -16,8 +16,8 @@
# production
/build
/public/umami.js
/public/geo
/lang-compiled
/geo
# misc
.DS_Store

View File

@ -14,7 +14,7 @@ if (process.env.MAXMIND_LICENSE_KEY) {
`?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)) {
fs.mkdirSync(dest);