Search code examples
ruby-on-railsrubygithub-pages

Rails on Github Pages


I recently set up my own Github Pages site, and I want to extend the functionality. I have a very basic site set up, with some HTML, CSS, Tailwind, and jQuery. I want to use Rails on my site for a blog. I was planning on using Jekyll, but I had some weird installation errors that put me off, and I want to learn Rails and Ruby anyhow, so I can broaden my horizons. Is it possible to host a site with Rails on Github Pages?

Note: I saw the older thread from ~2015 regarding a similar question, but I wasn't sure if those answers are up to date.

Thanks in advance.


Solution

  • GitHub Pages only for static sites. Here is the quote from the documentation

    GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub,

    If you want to host Rails-app try Heroku or something similar.