在Heroku上部署FeathersJS App [英] Deploy FeathersJS App on Heroku

查看:84
本文介绍了在Heroku上部署FeathersJS App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在heroku上部署我的 feathersjs 网络应用程序,并且因为羽毛只是一个快速包装器,所以我认为这就像部署普通节点应用程序一样.我在package.json上获取了"npm start"脚本,我将heroku remote添加到了我的git repo中,当我按下heroku时,运行了"yarn install"和"npm start"脚本.但是,仅在应用程序启动时,才会发生错误: heroku日志

I'm trying to deploy my feathersjs web app on heroku, and since feathers is simply an express wrapper I thought it was like deploy an ordinary node app. I got the "npm start" script on my package.json, I added heroku remote to my git repo and when I push heroku run "yarn install" and the "npm start" script. But just when the app start, an error occurs: heroku logs

我不知道会发生什么,有什么建议吗?也许我可以对我的应用进行docker化,有人可以帮助我找到合适的实现?

I can't figure out what happen, any suggestions? Maybe I could dockerize my app, someone could help me to find the proper implementation?

谢谢大家

推荐答案

与Express相同,但是默认情况下,生成的应用程序将使用

It is the same as Express but the generated application will by default use feathers-configuration to pull in your application settings. From the error message it looks like you are not providing a proper NODE_ENV environment variable which has to be set to production when deploying to Heroku.

这篇关于在Heroku上部署FeathersJS App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆