如何将Node.js创建的网站发布到Github Pages? [英] How to publish a website made by Node.js to Github Pages?

查看:108
本文介绍了如何将Node.js创建的网站发布到Github Pages?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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.

应用程序雾似乎是最经济的,因为它为具有2GB RAM的项目提供免费托管(如果您问我的话,这是相当不错的.).
如此处所述,AppFog删除了其针对新用户的免费计划.

App fog seems to be the most economical as it provides free hosting for projects with 2GB of RAM (which is pretty good if you ask me).
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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