如何将Node.js应用程序上传到FTP服务器? [英] How to upload Node.js Application to FTP server?
问题描述
我是Node.js的新手,但是我构建了一个应用程序,对此感到非常满意.我想知道如何将Node.js应用程序上传到FTP服务器?甚至有可能做到这一点?
I am kind of new to Node.js but I built an application and am pretty happy with it. I was wondering how would I go about uploading my Node.js application to an FTP server? Is it even possible to do this?
推荐答案
Node.JS应用程序只是文件的集合.您可以像使用其他文件一样,使用FTP将它们上传到另一台计算机上.
A Node.JS application is just a collection of files. You can upload them to another computer using FTP just like any other files.
那可能不是你想问的.
如果您想托管一个构建为Node.JS应用程序的网站,则需要使用以下任一托管方式:
If you want to host a website built as a Node.JS application then you need to be using hosting that either:
- 明确支持Node.JS(Google找到此列表)或
- 授予您完全的管理员访问权限(例如虚拟服务器或专用服务器)
这种托管通常会(至少)为您提供外壳访问(通过SSH),您可以使用该外壳访问来运行Node.JS应用程序.
Such hosting will generally give you (at a minimum) shell access (via SSH) which you can use to run the Node.JS application.
这篇关于如何将Node.js应用程序上传到FTP服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!