Skip to content

Commit 5b66bb3

Browse files
committed
dev-demo: move port to env
1 parent e36b4ce commit 5b66bb3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dev-demo/.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ NODE_ENV=development
55
OPENAI_API_KEY=1
66
HEAVY_DEBUG=
77
HEAVY_DEBUG_QUERY=
8+
PORT=3000
89

910
DATABASE_FILE=./db.sqlite
1011
DATABASE_FILE_URL=file:${DATABASE_FILE}

dev-demo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export const admin = new AdminForth({
289289

290290
const app = express()
291291
app.use(express.json());
292-
const port = 30000;
292+
const port = process.env.PORT || 3000;
293293

294294
(async () => {
295295
console.log('🅿️🅿️🅿️ 🅿️Bundling AdminForth...');

0 commit comments

Comments
 (0)