mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-06 14:26:35 +03:00
check, can we force feed the port via a env var?
This commit is contained in:
parent
53d31860d0
commit
63477bbd05
@ -51,8 +51,9 @@ function start({ routes, debug, manifestConfig }) {
|
||||
});
|
||||
});
|
||||
|
||||
app.listen(3000, () =>
|
||||
console.log("🚀 elm-pages develop on http://localhost:3000")
|
||||
const port = $.process.PORT || 3000;
|
||||
app.listen(port, () =>
|
||||
console.log("🚀 elm-pages develop on http://localhost:port")
|
||||
);
|
||||
// https://stackoverflow.com/questions/43667102/webpack-dev-middleware-and-static-files
|
||||
// app.use(express.static(__dirname + "/path-to-static-folder"));
|
||||
|
Loading…
Reference in New Issue
Block a user