mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
revert b1c459b
This commit is contained in:
parent
533a501427
commit
ca81a63dfd
@ -2,7 +2,6 @@ import path from "path";
|
|||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
import fse from "fs-extra";
|
import fse from "fs-extra";
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
import { CDNServer } from "./Server";
|
|
||||||
|
|
||||||
if (!process.env.STORAGE_PROVIDER) process.env.STORAGE_PROVIDER = "file";
|
if (!process.env.STORAGE_PROVIDER) process.env.STORAGE_PROVIDER = "file";
|
||||||
// TODO:nodejs path.join trailing slash windows compatible
|
// TODO:nodejs path.join trailing slash windows compatible
|
||||||
@ -17,6 +16,7 @@ if (process.env.STORAGE_PROVIDER === "file") {
|
|||||||
fse.ensureDirSync(process.env.STORAGE_LOCATION);
|
fse.ensureDirSync(process.env.STORAGE_LOCATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import { CDNServer } from "./Server";
|
||||||
const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
|
const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
|
||||||
server
|
server
|
||||||
.start()
|
.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user