Fix the server

This commit is contained in:
ポール ウェッブ 2018-09-24 20:16:34 -05:00
parent a33f817989
commit 76babb7fb3

View file

@ -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);