开发者

Add blog to Rails app on Heroku

开发者 https://www.devze.com 2023-03-16 14:17 出处:网络
I have a Rails app on Heroku with a Jekyll blog located at blog.myapp.com. I want to move the blog to www.myapp.com/blog/. What\'s the best way to do this? I\'m happy to ditch Jekyll if there is an ea

I have a Rails app on Heroku with a Jekyll blog located at blog.myapp.com. I want to move the blog to www.myapp.com/blog/. What's the best way to do this? I'm happy to ditch Jekyll if there is an easier 开发者_JAVA技巧option. Thanks!


Bloggy seems to be what you're looking for.

"Bloggy is a simple gem that helps you generate a jekyll blog within your rails application by using generator commands similar to the ones you are used to already."


You should be able to change the base-url configuration to /blog for this to work.

https://github.com/mojombo/jekyll/wiki/Configuration

0

精彩评论

暂无评论...
验证码 换一张
取 消