开发者

Rails CMS without database

I want to make a very simple CMS. I will be the only editor, so开发者_如何学JAVA I'd like to keep my code and content in the same place if possible.

What's the best way to go about doing this? Basically, I would like to use static code as my model.


If you really want a Rails CMS, don't know of any that uses static files instead of a database. Rails was designed for databases. I'd say the closest you could get would be to use something like Refinery with SQLite instead of MySQL. SQLite is still a database but it stores your "database" as a file in db/production.sqlite3 without needing a database server.

However, if Rails isn't a requirement, you could try Nesta (it uses Ruby and Sinatra instead of Rails). I haven't used it myself but it sounds like almost exactly what you're looking for.


I actually ended up using Jekyll, it was more close to what I was looking for than Nesta.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜