Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails with Github Pages

I am attempting to host a project using Github pages. As I understand it, Ruby on Rails cannot be run on GH-Pages, with the exception of using Jekyll. My project is not a blog, and therefor Jekyll seems like overkill. Is there any other way to deploy to GH-Pages? Is there another way to generate a static site from my Ruby on Rails app that would allow for easier deployment?

Thanks for any and all input.

like image 900
Xari Avatar asked Jan 08 '23 07:01

Xari


1 Answers

I'm afraid not. Rails is a dynamic system, meaning that the pages are generated from templates combined with data. GH-pages only servers static HTML, so even if you put static content into Rails, you would not be able to run the scripts that serve it.

Use Jekyll or Middleman to make a static site. If you really need Rails, use Heroku's free plan.

like image 128
Matt Gibson Avatar answered Jan 14 '23 11:01

Matt Gibson