tachibanaa710 commited on
Commit
f667d48
·
verified ·
1 Parent(s): 9b635ab

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +4 -4
server.js CHANGED
@@ -4,7 +4,8 @@ const cheerio = require('cheerio');
4
  const cors = require('cors');
5
 
6
  const app = express();
7
- const PORT = process.env.PORT || 3000;
 
8
 
9
 
10
  app.use(cors());
@@ -316,9 +317,8 @@ app.get('/', (req, res) => {
316
  });
317
  });
318
 
319
- app.listen(PORT, () => {
320
- console.log(`Pixiv Metadata API running on port ${PORT}`);
321
- console.log(`Access the API at: http://localhost:${PORT}/api/pixiv`);
322
  });
323
 
324
  module.exports = app;
 
4
  const cors = require('cors');
5
 
6
  const app = express();
7
+ const PORT = 7860;
8
+ const HOST = '0.0.0.0';
9
 
10
 
11
  app.use(cors());
 
317
  });
318
  });
319
 
320
+ app.listen(PORT, HOST, () => {
321
+ console.log(`Running on http://${HOST}:${PORT}`);
 
322
  });
323
 
324
  module.exports = app;