问题描述
我使用Node.js作为服务器创建了一个网站.据我所知,node.js文件应该通过在终端中键入命令开始工作,因此我不确定Github Pages是否支持node.js托管.那我该怎么办?
I made a website using Node.js as the server. As I know, the node.js file should start working by typing commands in terminal, so I'm not sure if Github Pages supports node.js-hosting. So what should I do?
推荐答案
GitHub页面仅托管静态HTML页面.不支持服务器端技术,因此Node.js应用程序不会在GitHub页面上运行. Node.js Wiki 中列出了很多托管服务提供商.
GitHub pages host only static HTML pages. No server side technology is supported, so Node.js applications won't run on GitHub pages. There are lots of hosting providers, as listed on the Node.js wiki.
如此处所述,AppFog删除了其针对新用户的免费计划.
As stated here, AppFog removed their free plan for new users.
如果您想在GitHub上托管静态页面,请阅读本指南.如果您打算使用 Jekyll ,则将非常有帮助.
If you want to host static pages on GitHub, then read this guide. If you plan on using Jekyll, then this guide will be very helpful.
这篇关于如何将Node.js创建的网站发布到Github Pages?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!