Skip to content

Commit

Permalink
Added a new start up message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleydavis committed Apr 6, 2024
1 parent 2053f86 commit f944eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f944eab

Please sign in to comment.