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 () => {
|
const start = async () => {
|
||||||
try {
|
try {
|
||||||
|
await fastify.listen(process.env.PORT || 8080, process.env.IP || "0.0.0.0");
|
||||||
|
/*
|
||||||
await fastify.listen(
|
await fastify.listen(
|
||||||
process.env.NODE_ENV === "development" ?
|
process.env.NODE_ENV === "development" ?
|
||||||
8080 :
|
8080 :
|
||||||
process.env.PORT
|
process.env.PORT
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
fastify.log.error(err);
|
fastify.log.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue