diff --git a/server/index.js b/server/index.js index 295863e..10e24e8 100755 --- a/server/index.js +++ b/server/index.js @@ -3,8 +3,9 @@ require("dotenv").config() const express = require('express'); const app = express(); + app.use('/', express.static('./www')) console.log(process.env.API_URL); app.get('/apiurl', (req, res) => res.send(process.env.API_URL)); -app.listen(3000, '0.0.0.0'); \ No newline at end of file +app.listen(process.env.PORT || 3000, process.env.HOST || 'localhost'); \ No newline at end of file