diff --git a/backend/src/index.ts b/backend/src/index.ts index 44a70162..2d11baa8 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -6,13 +6,13 @@ import { FileStorage } from "./services/file-storage"; async function main() { - const dbName = "photosphere"; - const PORT = process.env.PORT; if (!PORT) { throw new Error(`Set environment variable PORT.`); } + console.log(`Running in mode: ${process.env.NODE_ENV} on port ${PORT}.`); + const storage = process.env.NODE_ENV === "production" ? new CloudStorage() : new FileStorage();