diff --git a/server/index.js b/server/index.js index 73bb82c..4861a15 100644 --- a/server/index.js +++ b/server/index.js @@ -12,9 +12,9 @@ const prismaRun = require('../scripts/prisma-run'); const readConfig = require('../src/lib/readConfig'); const mimes = require('../scripts/mimes'); const deployDb = require('../scripts/deploy-db'); +const { version } = require('../package.json'); - -Logger.get('server').info('starting zipline server'); +Logger.get('server').info(`starting zipline@${version} server`); const dev = process.env.NODE_ENV === 'development'; @@ -42,10 +42,11 @@ function shouldUseYarn() { Logger.get('database').info('some migrations are not applied, applying them now...'); await deployDb(config); Logger.get('database').info('finished applying migrations'); + } else { + Logger.get('database').info('migrations up to date'); } process.env.DATABASE_URL = config.core.database_url; - // await stat('./.next'); await mkdir(config.uploader.directory, { recursive: true }); const app = next({ @@ -55,6 +56,7 @@ function shouldUseYarn() { }, config.core.port, config.core.host); await app.prepare(); + await stat('./.next'); const handle = app.getRequestHandler(); const prisma = new PrismaClient(); diff --git a/src/lib/types.ts b/src/lib/types.ts index de23c16..c9758f8 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -19,9 +19,6 @@ export interface ConfigUploader { // The route uploads will be served on route: string; - // The route embedded routes will be served on - embed_route: string; - // Length of random chars to generate for file names length: number;