如何将 Node.js 应用程序上传到 FTP 服务器? [英] How to upload Node.js Application to FTP server?

查看:25
本文介绍了如何将 Node.js 应用程序上传到 FTP 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 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 发现 这个列表)
  • 为您提供完整的管理员访问权限(例如虚拟或专用服务器)

此类托管通常会(至少)为您提供 shell 访问权限(通过 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屋!

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