mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
Remove the cdn storage location log
This commit is contained in:
parent
849b257db7
commit
fcc0884e36
@ -1,6 +1,6 @@
|
||||
import { Storage } from "./Storage";
|
||||
import fs from "fs";
|
||||
import { join, relative, dirname } from "path";
|
||||
import { join, dirname } from "path";
|
||||
import "missing-native-js-functions";
|
||||
import { Readable } from "stream";
|
||||
import ExifTransformer from "exif-be-gone";
|
||||
|
@ -21,7 +21,8 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
|
||||
} else {
|
||||
location = path.join(process.cwd(), "files");
|
||||
}
|
||||
console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`);
|
||||
// TODO: move this to some start func, so it doesn't run when server is imported
|
||||
//console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`);
|
||||
if (!fs.existsSync(location)) fs.mkdirSync(location);
|
||||
process.env.STORAGE_LOCATION = location;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user