mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
server(themes): make themes server port configurable
This commit is contained in:
@@ -27,8 +27,9 @@ const server = createHTTPServer({
|
|||||||
router: ThemesAPI
|
router: ThemesAPI
|
||||||
});
|
});
|
||||||
const PORT = parseInt(process.env.PORT || "9000");
|
const PORT = parseInt(process.env.PORT || "9000");
|
||||||
server.listen(PORT);
|
const HOST = process.env.HOST || "localhost";
|
||||||
console.log(`Server started successfully on: http://localhost:${PORT}/`);
|
server.listen(PORT, HOST);
|
||||||
|
console.log(`Server started successfully on: http://${HOST}:${PORT}/`);
|
||||||
|
|
||||||
syncThemes();
|
syncThemes();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user