Fix the server
This commit is contained in:
parent
a33f817989
commit
76babb7fb3
1 changed files with 3 additions and 0 deletions
|
@ -158,11 +158,14 @@ fastify.ready(err => {
|
|||
|
||||
const start = async () => {
|
||||
try {
|
||||
await fastify.listen(process.env.PORT || 8080, process.env.IP || "0.0.0.0");
|
||||
/*
|
||||
await fastify.listen(
|
||||
process.env.NODE_ENV === "development" ?
|
||||
8080 :
|
||||
process.env.PORT
|
||||
);
|
||||
*/
|
||||
} catch (err) {
|
||||
fastify.log.error(err);
|
||||
process.exit(1);
|
||||
|
|
Loading…
Reference in a new issue