mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-24 22:05:47 +00:00
Update index.js
fix port undefined
This commit is contained in:
@@ -3,9 +3,10 @@ process.env.NC_BINARY_BUILD = 'true';
|
||||
try {
|
||||
const app = require('express')();
|
||||
const {Noco} = require("nocodb");
|
||||
const httpServer = app.listen(process.env.PORT || 8080);
|
||||
const port = process.env.PORT || 8080;
|
||||
const httpServer = app.listen(port);
|
||||
app.use(await Noco.init({}, httpServer, app));
|
||||
console.log(`Visit : localhost:${process.env.PORT}/dashboard`)
|
||||
console.log(`Visit : localhost:${port}/dashboard`)
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user