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