Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
692 views
in Technique[技术] by (71.8m points)

ruby-on-rails - 如何在使用Rails创建的现有博客上使用jekyll(How to use jekyll on an existing blog made with rails)

My situation is that I have just finished creating a blog using ruby on rails.

(我的情况是,我刚刚使用Rails在Rails上创建了一个博客。)

I have been using localhost to see it display on my browser, but I want to deploy it online.

(我一直在使用localhost来查看它在我的浏览器中的显示,但是我想在线部署它。)

I found out that rails apps can't be deployed on ghpages because it is not static.

(我发现Rails应用程序不能部署在ghpages上,因为它不是静态的。)

However, I searched online and read that if I used Jekyll, i could display it on ghpages.

(但是,我在线搜索并读到,如果我使用Jekyll,则可以在ghpages上显示它。)

I have never used jekyll before, so my question is...

(我以前从未用过jekyll,所以我的问题是...)

How could I use/integrate jekyll to my existing rails app so that it can be deployed and hosted through github pages?

(如何使用jekyll /将其集成到现有的Rails应用程序中,以便可以通过github页面进行部署和托管?)

Thank you!

(谢谢!)

  ask by Kenny Huynh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You are trying to screw in a screw with a hammer.

(您正在尝试用锤子拧紧螺丝。)

Github pages is simple free hosting for static pages like a simple portfolio or the info page for a github project.

(Github页面是简单的免费托管服务,用于静态页面,例如简单的项目组合或github项目的信息页面。)

You would use jekyll to generate simple static HTML pages for this.

(您可以使用jekyll为此生成简单的静态HTML页面。)

If you want to deploy a Rails application there are several cloud hosting providers such as Heroku and Openshift that provide a free tier.

(如果要部署Rails应用程序,则可以使用免费提供的免费云服务,例如HerokuOpenshift 。)

First determine what you are trying to build.

(首先确定您要构建的内容。)

Then select the right tool and hosting for the job.

(然后选择合适的工具并托管该作业。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...