Heroku fix?
This commit is contained in:
parent
5c58152c28
commit
c31b1c56d8
2 changed files with 3 additions and 21 deletions
22
app/index.js
22
app/index.js
|
@ -73,29 +73,11 @@ server
|
|||
|
||||
// B E G I N
|
||||
|
||||
const start = async() => {
|
||||
try {
|
||||
await server.listen(process.env.PORT || 8080, process.env.IP || "0.0.0.0");
|
||||
} catch(err) {
|
||||
fastify.log.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
server.listen(process.env.PORT || 8080, process.env.IP || "0.0.0.0", async() => {
|
||||
process.env.NODE_ENV === "development" ?
|
||||
process.stdout.write(`\n— ${color.green("⚡")} ${server.server.address().port}\n`) :
|
||||
messageSlack({
|
||||
message: `Server started at port \`${server.server.address().port}\``,
|
||||
title: "APP BOOT"
|
||||
});
|
||||
};
|
||||
|
||||
start();
|
||||
|
||||
// server.listen(8080, "0.0.0.0", async() => {
|
||||
// process.env.NODE_ENV === "development" ?
|
||||
// process.stdout.write(`\n— ${color.green("⚡")} ${server.server.address().port}\n`) :
|
||||
// messageSlack({
|
||||
// message: `Server started at port \`${server.server.address().port}\``,
|
||||
// title: "APP BOOT"
|
||||
// });
|
||||
// });
|
||||
});
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
"scripts": {
|
||||
"css": "sass --load-path=node_modules --update app/sass:app/dist --style compressed",
|
||||
"format": "eslint '**/*.js' --fix --ignore-pattern '/app/dist/'",
|
||||
"start": "npm run css && NODE_ENV=production node",
|
||||
"start": "npm run css && npm i && NODE_ENV=production node index.js",
|
||||
"test": "run-s test:*",
|
||||
"test:dependencies": "updates --update ./ --exclude fastify,prismjs",
|
||||
"test:lint": "standardx --verbose | snazzy",
|
||||
|
|
Loading…
Reference in a new issue