Browse Source

Merge pull request #5856 from WALL-E/develop

Update index.js
pull/5863/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
1effaed876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      scripts/pkg-executable/index.js

5
scripts/pkg-executable/index.js

@ -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)
}

Loading…
Cancel
Save