mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Remove get-port
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import logger from '../../logger';
|
||||
import getPort from 'get-port';
|
||||
import dotenv from 'dotenv';
|
||||
|
||||
export default async function start() {
|
||||
dotenv.config();
|
||||
|
||||
const app = require('../../app').default;
|
||||
|
||||
const port = process.env.PORT || (await getPort({ port: 3000 }));
|
||||
const port = process.env.PORT;
|
||||
|
||||
app.listen(port, () => {
|
||||
logger.info(`Server started at port ${port}`);
|
||||
|
||||
Reference in New Issue
Block a user