简体   繁体   English

Github 页面上的导轨

[英]Rails on Github Pages

I recently set up my own Github Pages site, and I want to extend the functionality.我最近建立了自己的 Github Pages 站点,我想扩展功能。 I have a very basic site set up, with some HTML, CSS, Tailwind, and jQuery.我设置了一个非常基本的站点,其中包含一些 HTML、CSS、Tailwind 和 jQuery。 I want to use Rails on my site for a blog.我想在我的网站上使用 Rails 作为博客。 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.本来打算用 Jekyll,但是遇到了一些奇怪的安装错误,让我望而却步,我想学习 Rails 和 Ruby 无论如何,这样我可以拓宽我的视野。 Is it possible to host a site with Rails on Github Pages?是否可以在 Github 页面上使用 Rails 托管站点?

Note: I saw the older thread from ~2015 regarding a similar question, but I wasn't sure if those answers are up to date.注意:我从 ~2015 年看到了关于类似问题的较旧线程,但我不确定这些答案是否是最新的。

Thanks in advance.提前致谢。

GitHub Pages only for static sites. GitHub 页面仅适用于 static 站点。 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, 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.如果您想托管 Rails 应用程序,请尝试Heroku或类似的东西。

No, it is not possible since GitHub Pages only provide serverless static site hosting, there is no server to run Rails app.不,这是不可能的,因为 GitHub Pages 仅提供无服务器 static 站点托管,没有运行 Rails 应用程序的服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM