简体   繁体   English

将我的Socket.io和node.js应用程序上传到服务器

[英]uploading my Socket.io and node.js application to a server

So i just finished up my Socket.io application (instant Messenger) and I usually build and use these applications in localhost. 因此,我刚刚完成了Socket.io应用程序(即时Messenger),并且通常在localhost中构建和使用这些应用程序。 But for this I want to upload it to a server so others may use it! 但是为此,我想将其上传到服务器,以便其他人可以使用它! I'm just kind of confused on how i would get some stuff working, like connecting to my JS file using node.js on a server and such. 我只是对如何使某些东西工作感到困惑,例如使用服务器上的node.js连接到我的JS文件等。 I have a small shared server with GoDaddy i was planning to upload this to, so my question is it possible to upload my files to a shared server and have node.js running on my PC? 我有一个打算与GoDaddy共享的小型共享服务器,因此我的问题是可以将文件上传至共享服务器并在我的PC上运行node.js吗? Or am I looking like a complete fool and asking something that can not be easily done? 还是我看起来像个傻瓜,问一些不容易完成的事情?

You need nodejs on your server so you can run your web service. 您的服务器上需要nodejs,以便您可以运行Web服务。 You may want to consider signing up for AWS or any other cloud hosting service and launch your own virtual server running a nodejs stack, its free for one year. 您可能要考虑注册AWS或任何其他云托管服务,并启动运行自己的运行nodejs堆栈的虚拟服务器,该服务免费一年。

Then you just need to upload your files to the server and run them using nodejs. 然后,您只需要将文件上传到服务器并使用nodejs运行它们即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM