如何使用bin/www为node.js heroku部署编写Procfile? [英] How to write Procfile for node.js heroku deployment using bin/www?

查看:49
本文介绍了如何使用bin/www为node.js heroku部署编写Procfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署Heroku应用程序,并且我相信procfile可能是我的应用程序未部署的原因.我尝试了多种解决方案,包括:

I am trying to deploy a Heroku app, and I believe the procfile may be the reason my app is not deploying. I've tried multiple solutions including:

web:节点./bin/www 网址:npm start

web: node ./bin/www web: npm start

可能还有另一个原因导致我的应用无法正常运行,但是我想确保我的Procfile设置正确

There may be another reason my app is not working, but I want to make sure my Procfile is set up correctly

推荐答案

您应该这样做:

web: ./bin/www npm start

这就是为我解决的问题!

This is what fixed it for me!

这篇关于如何使用bin/www为node.js heroku部署编写Procfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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