简体   繁体   English

Web服务器上的node.js命令行文件excel

[英]node.js command line file excel on web server

My script in node.js generate a excel file, I need to put this file available on web server like web url and people can download it directly. 我在node.js中的脚本生成了一个excel文件,我需要将此文件放在Web服务器(如Web url)上,人们可以直接下载它。 Right now, script generate a excel file and it is available in windows folder. 现在,脚本会生成一个excel文件,该文件位于Windows文件夹中。 Thanks 谢谢

If you really want to use nodejs for this you can use something like "static-server" and create a server that will export everything from you'r folder to the "web".. But much better approach is to do it throught nginx or apache. 如果您真的想使用nodejs,则可以使用“ static-server”之类的东西,并创建一个服务器,将文件夹中的所有内容导出到“ web”。但是更好的方法是通过nginx或阿帕奇。

You can google with keywords "static [file] server (nginx|apache|nodejs)". 您可以使用关键字“静态[文件]服务器(nginx | apache | nodejs)”在Google中搜索。

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

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