How to upload Node.js Application to FTP server?

2019-06-09 20:26发布

问题:

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?

回答1:

A Node.JS application is just a collection of files. You can upload them to another computer using FTP just like any other files.

That probably isn't what you are trying to ask though.

If you want to host a website built as a Node.JS application then you need to be using hosting that either:

  • Explicitly supports Node.JS (Google finds this list) or
  • Gives you full admin access (such as a virtual or dedicated server)

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