node.jsgithub-pages

How to publish a website made by Node.js to Github Pages?


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?


Solution

  • 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.

    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.