Files
nocodb/scripts/pkg-executable/index.js
Pranav C 1d2b59ba73 chore: executable build corrections
Signed-off-by: Pranav C <pranavxc@gmail.com>
2022-06-23 19:58:15 +05:30

13 lines
359 B
JavaScript

process.env.NC_BINARY_BUILD = 'true';
(async () => {
try {
const app = require('express')();
const {Noco} = require("nocodb");
const httpServer = app.listen(process.env.PORT || 8080);
app.use(await Noco.init({}, httpServer, app));
console.log(`Visit : localhost:${process.env.PORT}/dashboard`)
} catch(e) {
console.log(e)
}
})()