如何在Godaddy服务器上安装nodejs应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27254174/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 18:11:11  来源:igfitidea点击:

How to install nodejs application in Godaddy server

node.js

提问by shmoolki

I begun with nodejsand express framework.

我开始nodejsexpress framework.

In localhost its ok i can run my app, but i would like to know how can i use it in my website that host in godaddy server.

在 localhost 中,我可以运行我的应用程序,但我想知道如何在我的网站中使用它,该网站托管在 Godaddy 服务器中。

I use to execute just php but nodejs i don't know how can i do that.

我过去只执行 php 但 nodejs 我不知道我该怎么做。

In local, I write in command line:

在本地,我在命令行中写:

node app.js

or

或者

npm start 

with package.json, but in Godaddy I can't use commandline to start the app.

使用 package.json,但在 Godaddy 中我无法使用命令行来启动应用程序。

回答by Colby-GoDaddy

Our shared hosting does not have node support. Right now your best bet is to get a virtual dedicated server but in the near future we'll have some additional options that will be priced closer to the Shared price point but with Node support. Hope this helps!

我们的共享主机没有节点支持。现在你最好的选择是获得一个虚拟专用服务器,但在不久的将来,我们将提供一些额外的选项,这些选项的价格将更接近共享价格点,但有 Node 支持。希望这可以帮助!

回答by Paul

GoDaddy doesn't support Node as far as I know, the server has to have Node installed for your command to run. Consider Heroku or NodeJitsu if you want Node hosting. Plus, they're free at a first tier and a much better product in my experience than GoDaddy.

据我所知,GoDaddy 不支持 Node,服务器必须安装 Node 才能运行您的命令。如果您想要 Node 托管,请考虑 Heroku 或 NodeJits。另外,根据我的经验,它们在第一层是免费的,并且是比 GoDaddy 更好的产品。